Skip to content

Commit 98cfa2a

Browse files
committed
Merge pull request moby#11975 from duglin/FixOOMTest
Increase timeout on TestRunOOMExitCode test
2 parents e736f16 + 8d1455d commit 98cfa2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration-cli/docker_cli_run_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3281,7 +3281,7 @@ func TestRunOOMExitCode(t *testing.T) {
32813281
go func() {
32823282
defer close(done)
32833283

3284-
runCmd := exec.Command(dockerBinary, "run", "-m", "4MB", "busybox", "sh", "-c", "x=a; while true; do x=$x$x; done")
3284+
runCmd := exec.Command(dockerBinary, "run", "-m", "4MB", "busybox", "sh", "-c", "x=a; while true; do x=$x$x$x$x; done")
32853285
out, exitCode, _ := runCommandWithOutput(runCmd)
32863286
if expected := 137; exitCode != expected {
32873287
t.Fatalf("wrong exit code for OOM container: expected %d, got %d (output: %q)", expected, exitCode, out)
@@ -3290,7 +3290,7 @@ func TestRunOOMExitCode(t *testing.T) {
32903290

32913291
select {
32923292
case <-done:
3293-
case <-time.After(3 * time.Second):
3293+
case <-time.After(30 * time.Second):
32943294
t.Fatal("Timeout waiting for container to die on OOM")
32953295
}
32963296

0 commit comments

Comments
 (0)