Merge pull request #8664 from laurazard/timeout-integration-test-shim-oomscore

integration/client: add timeout to `TestShimOOMScore`
This commit is contained in:
Derek McGowan 2023-06-09 11:49:48 -07:00 committed by GitHub
commit ee2c8b79bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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