Skip to content

Commit 7dffd25

Browse files
committed
unset PATH variable in cleanup
1 parent 6bff975 commit 7dffd25

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

provisioner/terraform/serve_internal_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ func Test_getAbsoluteBinaryPath(t *testing.T) {
9090
if actualOk != tt.expectedOk {
9191
t.Errorf("getAbsoluteBinaryPath() ok, actual = %v, expected %v", actualOk, tt.expectedOk)
9292
}
93+
94+
t.Cleanup(func() {
95+
t.Setenv("PATH", pathVariable)
96+
})
9397
})
9498
}
9599
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy