mirror of
https://github.com/joho/godotenv.git
synced 2025-06-25 20:34:02 +00:00
Clear the env at the start of each integration test.
This commit is contained in:
@ -42,8 +42,10 @@ func loadFile(filename string) (err error) {
|
||||
}
|
||||
|
||||
for _, fullLine := range lines {
|
||||
// fmt.Printf("Line: %v\n", fullLine)
|
||||
if !isIgnoredLine(fullLine) {
|
||||
key, value, err := parseLine(fullLine)
|
||||
// fmt.Printf("Key: %v Value: %v\n", key, value)
|
||||
|
||||
if err == nil {
|
||||
os.Setenv(key, value)
|
||||
|
Reference in New Issue
Block a user