Skip to content

Commit

Permalink
Update dependency testcontainers to v10 (#416)
Browse files Browse the repository at this point in the history
* Update dependency testcontainers to v10

* fix: update health check

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Philipp Arndt <[email protected]>
  • Loading branch information
renovate[bot] and philipparndt authored Aug 7, 2023
1 parent b87f846 commit 9b1b783
Show file tree
Hide file tree
Showing 3 changed files with 268 additions and 141 deletions.
6 changes: 4 additions & 2 deletions app/lib/integration/test-utils.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { HealthCheck } from "testcontainers/build/types"

export const JEST_CONTAINER_TIMEOUT = 60 * 5 * 1000
export const JEST_DEFAULT_TIMEOUT = 5 * 1000

export const curlHealthTest = (host: string, port: number) => {
return {
test: `curl -f http://${host}:${port} || exit 1`,
test: ["CMD-SHELL", `curl -f http://${host}:${port} || exit 1`],
interval: 5_000,
timeout: 30_000,
retries: 20,
startPeriod: 1_000
}
} as HealthCheck
}

export const waitFor = async (predicate: () => boolean) => {
Expand Down
Loading

0 comments on commit 9b1b783

Please sign in to comment.