mirror of
https://github.com/joho/godotenv.git
synced 2025-05-31 11:42:15 +00:00
Fix remaining failing test on windows
This commit is contained in:
parent
9c77c4efaf
commit
ae0bc4ea3c
@ -32,8 +32,9 @@ func loadEnvAndCompareValues(t *testing.T, envFileName string, expectedValues ma
|
|||||||
|
|
||||||
func TestLoadWithNoArgsLoadsDotEnv(t *testing.T) {
|
func TestLoadWithNoArgsLoadsDotEnv(t *testing.T) {
|
||||||
err := Load()
|
err := Load()
|
||||||
if err.Error() != "open .env: no such file or directory" {
|
pathError := err.(*os.PathError)
|
||||||
t.Errorf("Didn't try and open .env by default")
|
if pathError == nil || pathError.Op != "open" || pathError.Path != ".env"{
|
||||||
|
t.Errorf("Didn't try and open .env by default")11
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user