Skip to content

Commit

Permalink
test: missing a .env no longer panics to accommodate CI test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ctran88 committed Oct 28, 2024
1 parent 0252ef6 commit 98bfff5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions passage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 98bfff5

Please sign in to comment.