Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
cchampou committed Nov 4, 2023
1 parent 0d026a2 commit 91fd145
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions discord/security_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ func TestVerifySignature(t *testing.T) {
t.Setenv("DISCORD_PUBLIC_KEY", "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee")
req := createRequestWithInvalidSignature()
err := VerifySignature(req)
if err != nil {
t.Skip()
if err.Error() != "invalid signature" {
t.Fail()
}
t.Fail()
}

0 comments on commit 91fd145

Please sign in to comment.