Skip to content

Commit bd76ab9

Browse files
committed
integration/client: add timeout to TestShimOOMScore
Signed-off-by: Laura Brehm <[email protected]> (cherry picked from commit df28094) Signed-off-by: Laura Brehm <[email protected]>
1 parent f77f587 commit bd76ab9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

integration/client/container_linux_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,5 +1488,9 @@ func TestShimOOMScore(t *testing.T) {
14881488
t.Fatal(err)
14891489
}
14901490

1491-
<-statusC
1491+
select {
1492+
case <-time.After(5 * time.Second):
1493+
t.Fatal("timeout waiting for task exit event")
1494+
case <-statusC:
1495+
}
14921496
}

0 commit comments

Comments
 (0)