Skip to content

Commit ec8ccb4

Browse files
committed
tests/util/test_app: Increase default database connection pool size
Before rust-lang#7244 we were limited to only having a single database connection in most of our test suite since we were working within a running transaction. This is no longer the case and e.g. our background jobs might use another connection from the pool, while the runner itself already holds a connection with a transaction. This commit changes the default pool size to 5. Since the connections are opened on demand in the background it should not significantly influence the test performance.
1 parent f222915 commit ec8ccb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/util/test_app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ fn simple_config() -> config::Server {
381381
primary: DbPoolConfig {
382382
url: required_var("TEST_DATABASE_URL").unwrap().into(),
383383
read_only_mode: false,
384-
pool_size: 1,
384+
pool_size: 5,
385385
min_idle: None,
386386
},
387387
replica: None,

0 commit comments

Comments
 (0)