diff --git a/tools/dwh-auth/internal/credential/credential_test.go b/tools/dwh-auth/internal/credential/credential_test.go index ba4de877..0b35154c 100644 --- a/tools/dwh-auth/internal/credential/credential_test.go +++ b/tools/dwh-auth/internal/credential/credential_test.go @@ -83,7 +83,7 @@ func TestVerifyV1RejectsNonCanonicalValues(t *testing.T) { []byte(string(material.Value) + "." + material.KeyID), []byte(string(material.Value) + "="), []byte(" " + string(material.Value)), - append(bytes.Repeat([]byte{'a'}, MaxHeaderBytes+1)), + bytes.Repeat([]byte{'a'}, MaxHeaderBytes+1), } { if keyID, ok := VerifyV1(value, material.Digest); ok || keyID != "" { t.Fatalf("VerifyV1(%q) = (%q, %t), want (\"\", false)", value, keyID, ok)