Skip to content

Commit 3bf3996

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 faedf29 commit 3bf3996

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
@@ -1492,5 +1492,9 @@ func TestShimOOMScore(t *testing.T) {
14921492
t.Fatal(err)
14931493
}
14941494

1495-
<-statusC
1495+
select {
1496+
case <-time.After(5 * time.Second):
1497+
t.Fatal("timeout waiting for task exit event")
1498+
case <-statusC:
1499+
}
14961500
}

0 commit comments

Comments
 (0)