Skip to content

Commit

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

0 comments on commit c548b2e

Please sign in to comment.