Skip to content

Commit

Permalink
fix: add fake env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
cchampou committed Nov 4, 2023
1 parent 7d534e8 commit 5dcae9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discord/security_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ func TestGetRequestSignature(t *testing.T) {
}

func TestVerifySignature(t *testing.T) {
t.Setenv("DISCORD_BOT_TOKEN", "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee")
t.Setenv("DISCORD_PUBLIC_KEY", "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee")
req := createRequestWithInvalidSignature()
err := VerifySignature(req)
if err != nil {
Expand Down

0 comments on commit 5dcae9d

Please sign in to comment.