diff --git a/pkg/imageverifier/bindir/bindir_test.go b/pkg/imageverifier/bindir/bindir_test.go index 099f6dc3c42b..000a0b294bde 100644 --- a/pkg/imageverifier/bindir/bindir_test.go +++ b/pkg/imageverifier/bindir/bindir_test.go @@ -175,7 +175,7 @@ func TestBinDirVerifyImage(t *testing.T) { }) j, err := v.VerifyImage(ctx, "registry.example.com/image:abc", ocispec.Descriptor{}) - assert.NoError(t, err) + require.NoError(t, err) assert.True(t, j.OK, "expected OK, got not OK with reason: %v", j.Reason) assert.Less(t, len(j.Reason), len(bins)*(outputLimitBytes+1024), "reason is: %v", j.Reason) // 1024 leaves margin for the formatting around the reason. })