Skip to content

Commit

Permalink
chore(test): change container wait strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
0xERR0R committed Sep 19, 2023
1 parent aa9ae0b commit 19865bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions e2e/containers.go
Expand Up @@ -199,8 +199,7 @@ func createBlockyContainer(tmpDir *helpertest.TmpFolder, lines ...string) (testc
Interval: time.Second,
}
},
// can't use forExposedPorts / forListeningPorts because it needs "/bin/sh" in container
WaitingFor: wait.NewExecStrategy([]string{"/app/blocky", "healthcheck"}).WithStartupTimeout(startupTimeout),
WaitingFor: wait.ForHealthCheck().WithStartupTimeout(startupTimeout),
}

container, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
Expand Down

0 comments on commit 19865bb

Please sign in to comment.