Skip to content
代码片段 群组 项目
未验证 提交 7fe56892 编辑于 作者: Heinrich Lee Yu's avatar Heinrich Lee Yu
浏览文件

Disable connection reaping in test environment

This can cause flaky tests when we have threads that create new
connections that are reaped in between tests that are inside a
before_all context
上级 314d74c7
No related branches found
No related tags found
无相关合并请求
...@@ -60,6 +60,7 @@ test: ...@@ -60,6 +60,7 @@ test:
username: postgres username: postgres
password: password:
prepared_statements: false prepared_statements: false
reaping_frequency: nil
variables: variables:
statement_timeout: 15s statement_timeout: 15s
ci: ci:
...@@ -68,19 +69,23 @@ test: ...@@ -68,19 +69,23 @@ test:
username: postgres username: postgres
password: password:
prepared_statements: false prepared_statements: false
reaping_frequency: nil
variables: variables:
statement_timeout: 15s statement_timeout: 15s
main_clusterwide: main_clusterwide:
<<: *main <<: *main
database_tasks: false database_tasks: false
reaping_frequency: nil
geo: geo:
<<: *defaults <<: *defaults
database: gitlabhq_geo_test database: gitlabhq_geo_test
username: postgres username: postgres
password: password:
reaping_frequency: nil
embedding: embedding:
<<: *defaults <<: *defaults
database: gitlabhq_embedding_test database: gitlabhq_embedding_test
username: postgres username: postgres
password: password:
reaping_frequency: nil
...@@ -84,6 +84,7 @@ test: &test ...@@ -84,6 +84,7 @@ test: &test
password: password:
host: localhost host: localhost
prepared_statements: false prepared_statements: false
reaping_frequency: nil
variables: variables:
statement_timeout: 15s statement_timeout: 15s
ci: ci:
...@@ -94,6 +95,7 @@ test: &test ...@@ -94,6 +95,7 @@ test: &test
password: password:
host: localhost host: localhost
prepared_statements: false prepared_statements: false
reaping_frequency: nil
variables: variables:
statement_timeout: 15s statement_timeout: 15s
geo: geo:
...@@ -103,6 +105,7 @@ test: &test ...@@ -103,6 +105,7 @@ test: &test
username: postgres username: postgres
password: password:
host: localhost host: localhost
reaping_frequency: nil
embedding: embedding:
adapter: postgresql adapter: postgresql
encoding: unicode encoding: unicode
...@@ -110,3 +113,4 @@ test: &test ...@@ -110,3 +113,4 @@ test: &test
username: postgres username: postgres
password: password:
host: localhost host: localhost
reaping_frequency: nil
...@@ -104,6 +104,7 @@ test: &test ...@@ -104,6 +104,7 @@ test: &test
password: password:
host: localhost host: localhost
prepared_statements: false prepared_statements: false
reaping_frequency: nil
variables: variables:
statement_timeout: 15s statement_timeout: 15s
ci: ci:
...@@ -115,6 +116,7 @@ test: &test ...@@ -115,6 +116,7 @@ test: &test
password: password:
host: localhost host: localhost
prepared_statements: false prepared_statements: false
reaping_frequency: nil
variables: variables:
statement_timeout: 15s statement_timeout: 15s
geo: geo:
...@@ -124,6 +126,7 @@ test: &test ...@@ -124,6 +126,7 @@ test: &test
username: postgres username: postgres
password: password:
host: localhost host: localhost
reaping_frequency: nil
embedding: embedding:
adapter: postgresql adapter: postgresql
encoding: unicode encoding: unicode
...@@ -131,3 +134,4 @@ test: &test ...@@ -131,3 +134,4 @@ test: &test
username: postgres username: postgres
password: password:
host: localhost host: localhost
reaping_frequency: nil
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册