diff --git a/test/e2e_test.go b/test/e2e_test.go index 5a76d512e97a..a131959bef34 100644 --- a/test/e2e_test.go +++ b/test/e2e_test.go @@ -434,7 +434,7 @@ func TestExcessiveAttestations(t *testing.T) { } // Attest to create a vuln attestation - attestCommand := attest.AttestCommand{ + attestCommand := attest.AttestCmd{ KeyOpts: ko, PredicatePath: vulnAttestationPath, PredicateType: "vuln", @@ -444,8 +444,7 @@ func TestExcessiveAttestations(t *testing.T) { must(attestCommand.Exec(ctx, imgName), t) } - attOpts := options.AttestationDownloadOptions{} - _, err = cosign.FetchAttestationsForReference(ctx, ref, attOpts.PredicateType, ociremoteOpts...) + _, err = cosign.FetchAttestationsForReference(ctx, ref, ociremoteOpts...) if err == nil { t.Fatalf("Expected an error, but 'err' was 'nil'") }