Skip to content

Commit 3ed9521

Browse files
lpcoxCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent aaa392e commit 3ed9521

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/server/hmac_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ func TestRejectHMAC_UsesUnauthorizedContract(t *testing.T) {
268268

269269
rejectHMAC(w, req, "invalid HMAC signature", "signature_mismatch")
270270

271-
assert.Equal(t, http.StatusUnauthorized, w.Code)
272-
assert.Contains(t, w.Body.String(), "invalid HMAC signature")
271+
assert.Equal(t, http.StatusUnauthorized, w.Code)
272+
assert.JSONEq(t, `{"error":"unauthorized","message":"invalid HMAC signature"}`, w.Body.String())
273273
}
274274

275275
func TestApplyHMACIfConfigured_NoSecret(t *testing.T) {

0 commit comments

Comments
 (0)