diff --git a/src/os/env_test.go b/src/os/env_test.go index 2224890869..d1074cdc60 100644 --- a/src/os/env_test.go +++ b/src/os/env_test.go @@ -101,6 +101,7 @@ func TestLookupEnv(t *testing.T) { if ok || value != "" { t.Fatalf("%s=%q", smallpox, value) } + defer Unsetenv(smallpox) err := Setenv(smallpox, "virus") if err != nil { t.Fatalf("failed to release smallpox virus")