test(kube): use require for the error assertion

testifylint (require-error) flags assert.NoError on the WaitForDelete
result in TestStatusWaitForDeleteClusterScopedReturnsPromptly.

Signed-off-by: Bisman-Singh <bismanmadaan1@gmail.com>
pull/32594/head
Bisman-Singh 1 week ago
parent b58c3ad1a3
commit 8f4c4fd191

@ -410,7 +410,7 @@ func TestStatusWaitForDeleteClusterScopedReturnsPromptly(t *testing.T) {
}()
select {
case err := <-errCh:
assert.NoError(t, err)
require.NoError(t, err)
case <-time.After(time.Second * 10):
t.Fatal("WaitForDelete blocked on a cluster-scoped resource that receives no status events; it must return promptly instead of waiting out the timeout")
}

Loading…
Cancel
Save