integration/client: add timeout to TestShimOOMScore

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
This commit is contained in:
Laura Brehm 2023-06-09 10:10:42 +01:00
parent 67349c1141
commit df280942a7
No known key found for this signature in database
GPG Key ID: 526E3FC49260D47A

View File

@ -1412,5 +1412,9 @@ func TestShimOOMScore(t *testing.T) {
t.Fatal(err)
}
<-statusC
select {
case <-time.After(5 * time.Second):
t.Fatal("timeout waiting for task exit event")
case <-statusC:
}
}