Skip to content

Commit

Permalink
fix: container timeout test
Browse files Browse the repository at this point in the history
Reduce the timeout for TestContainerCreationTimesOutWithHttp to reduce
the likely hood of failure.
  • Loading branch information
stevenh committed Jul 30, 2024
1 parent dc283ad commit 99c5114
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -884,14 +884,12 @@ func TestContainerCreationTimesOutWithHttp(t *testing.T) {
ExposedPorts: []string{
nginxDefaultPort,
},
WaitingFor: wait.ForHTTP("/").WithStartupTimeout(1 * time.Second),
WaitingFor: wait.ForHTTP("/").WithStartupTimeout(time.Millisecond * 500),
},
Started: true,
})
CleanupContainer(t, nginxC)
if err == nil {
t.Error("Expected timeout")
}
require.Error(t, err, "expected timeout")
}

func TestContainerCreationWaitsForLogContextTimeout(t *testing.T) {
Expand Down

0 comments on commit 99c5114

Please sign in to comment.