Skip to content

Commit ec87dbf

Browse files
committed
os: eradicate smallpox after test
Otherwise: $ go test -short -cpu=1,1,2,2 --- FAIL: TestLookupEnv (0.00s) env_test.go:102: SMALLPOX="virus" --- FAIL: TestLookupEnv-2 (0.00s) env_test.go:102: SMALLPOX="virus" --- FAIL: TestLookupEnv-2 (0.00s) env_test.go:102: SMALLPOX="virus" Change-Id: Ic1f6dd1bae3c79c4f7da02bc8c30b5e599627a82 Reviewed-on: https://go-review.googlesource.com/9794 Reviewed-by: Rob Pike <[email protected]>
1 parent 7165c9b commit ec87dbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/os/env_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ func TestLookupEnv(t *testing.T) {
101101
if ok || value != "" {
102102
t.Fatalf("%s=%q", smallpox, value)
103103
}
104+
defer Unsetenv(smallpox)
104105
err := Setenv(smallpox, "virus")
105106
if err != nil {
106107
t.Fatalf("failed to release smallpox virus")

0 commit comments

Comments
 (0)