Skip to content

Commit

Permalink
Merge branch 'main' into fix_http_wait_race
Browse files Browse the repository at this point in the history
  • Loading branch information
gflarity authored Sep 28, 2023
2 parents bcb0f2d + c6c7fcf commit fbe9c28
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ func TestContainerNonExistentImage(t *testing.T) {
})

t.Run("the context cancellation is propagated to container creation", func(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 100*time.Millisecond)
defer cancel()
c, err := GenericContainer(ctx, GenericContainerRequest{
ProviderType: providerType,
Expand Down Expand Up @@ -1836,8 +1836,9 @@ func TestContainerCapAdd(t *testing.T) {
func TestContainerRunningCheckingStatusCode(t *testing.T) {
ctx := context.Background()
req := ContainerRequest{
Image: "influxdb:1.8.10-alpine",
ExposedPorts: []string{"8086/tcp"},
Image: "influxdb:1.8.10-alpine",
ExposedPorts: []string{"8086/tcp"},
ImagePlatform: "linux/amd64", // influxdb doesn't provide an alpine+arm build (https://github.com/influxdata/influxdata-docker/issues/335)
WaitingFor: wait.ForAll(
wait.ForHTTP("/ping").WithPort("8086/tcp").WithStatusCodeMatcher(
func(status int) bool {
Expand Down

0 comments on commit fbe9c28

Please sign in to comment.