Commit 25890bb
committed
sbt 2.x: run integration tests sequentially to avoid Postgres connection exhaustion
Root cause of the sbt 2.0 test failures: 'FATAL: remaining connection slots are reserved'.
Each integration spec opens Hikari pools (users+discussions x connectionPool) against the one
shared Postgres; sbt 2.x runs test classes in the forked JVM more concurrently than sbt 1.x,
blowing past Postgres's connection limit -> flyway migrate / queries fail with
'ResultSet exhausted'. Set Test/parallelExecution=false + testForkedParallel=false for the
integration-test modules (Tags.limit(Test,1) alone only serialized across modules).1 parent 0318a7e commit 25890bb
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
| |||
0 commit comments