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

+4
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)