From 5dcae9d4ce64d95106cf42e0746d8ede38c1b7cf Mon Sep 17 00:00:00 2001 From: cchampou Date: Sat, 4 Nov 2023 09:08:45 +0100 Subject: [PATCH] fix: add fake env variables --- discord/security_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/security_test.go b/discord/security_test.go index 1fda744..9346804 100644 --- a/discord/security_test.go +++ b/discord/security_test.go @@ -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 {