Skip to content

Commit

Permalink
Fix bad wait strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Oct 21, 2024
1 parent bc668b8 commit 871152c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/typescript-testing/test/restate_test_environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ async function prepareRestateTestContainer(
restateServerPort: number
): Promise<StartedTestContainer> {
const restateContainer = new GenericContainer(
"docker.io/restatedev/restate:1.1.2"
"docker.io/restatedev/restate:1.1"
)
// Expose ports
.withExposedPorts(8080, 9070)
// Wait start on health checks
.withWaitStrategy(
Wait.forAll([
Wait.forHttp("/health", 9070),
Wait.forHttp("/restate/health", 8080),
Wait.forHttp("/health", 9070)
])
);

Expand Down

0 comments on commit 871152c

Please sign in to comment.