Skip to content

Commit

Permalink
fix: container timeout test (#2792)
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 authored Sep 21, 2024
1 parent b823aad commit c0ac18f
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 @@ -658,14 +658,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 c0ac18f

Please sign in to comment.