Skip to content

Commit

Permalink
Merge branch 'main' into deprecated-goerli
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes authored Apr 12, 2024
2 parents 3851bd4 + 1889b90 commit b318baa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions account/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ var (
func TestMain(m *testing.M) {
flag.StringVar(&testEnv, "env", "mock", "set the test environment")
flag.Parse()
if err := godotenv.Load(fmt.Sprintf(".env.%s", testEnv), ".env"); err != nil {
panic(fmt.Sprint("Failed to load env for ", testEnv))
if testEnv != "mock" {
if err := godotenv.Load(fmt.Sprintf(".env.%s", testEnv), ".env"); err != nil {
panic(fmt.Sprint("Failed to load env for ", testEnv))
}
}
base = os.Getenv("INTEGRATION_BASE")
if base == "" && testEnv != "mock" {
Expand Down

0 comments on commit b318baa

Please sign in to comment.