Skip to content

Commit

Permalink
Add additional wait strategy in E2E database (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzadp authored Aug 14, 2024
1 parent 5691ecb commit b1e2b99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/setupE2E.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ async function setupDBContainer(): Promise<StartedTestContainer> {
POSTGRESQL_EXTRA_FLAGS: "-c log_statement=all"
})
.withWaitStrategy(Wait.forListeningPorts())
.withWaitStrategy(Wait.forLogMessage("database system is ready to accept connections"))
.withLogConsumer(logConsumer("faucet-test-db"))
.start();
}
Expand Down

0 comments on commit b1e2b99

Please sign in to comment.