Skip to content

Commit df28094

Browse files
committed
integration/client: add timeout to TestShimOOMScore
Signed-off-by: Laura Brehm <[email protected]>
1 parent 67349c1 commit df28094

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

integration/client/container_linux_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,5 +1412,9 @@ func TestShimOOMScore(t *testing.T) {
14121412
t.Fatal(err)
14131413
}
14141414

1415-
<-statusC
1415+
select {
1416+
case <-time.After(5 * time.Second):
1417+
t.Fatal("timeout waiting for task exit event")
1418+
case <-statusC:
1419+
}
14161420
}

0 commit comments

Comments
 (0)