From 98bfff508882b8cc7d1daa68ea5684fb105150ee Mon Sep 17 00:00:00 2001 From: Chris Tran Date: Mon, 28 Oct 2024 11:31:03 -0500 Subject: [PATCH] test: missing a .env no longer panics to accommodate CI test workflow --- passage_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/passage_test.go b/passage_test.go index 5a9a55e..4c47ec9 100644 --- a/passage_test.go +++ b/passage_test.go @@ -31,9 +31,7 @@ func generateRandomEmail(prefixLength int) string { } func TestMain(m *testing.M) { - if err := godotenv.Load(".env"); err != nil { - panic(err) - } + _ = godotenv.Load(".env") PassageAppID = os.Getenv("PASSAGE_APP_ID") PassageApiKey = os.Getenv("PASSAGE_API_KEY")