We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53adcbf commit 78b8bddCopy full SHA for 78b8bdd
console_test.go
@@ -34,7 +34,7 @@ func TestTempConsole(t *testing.T) {
34
func TestTempConsoleWithXdgRuntimeDir(t *testing.T) {
35
tmpDir := "/tmp/foo"
36
// prevent interferring with other tests
37
- defer os.Setenv("XDG_RUNTIME_DIR", "")
+ defer os.Setenv("XDG_RUNTIME_DIR", os.Getenv("XDG_RUNTIME_DIR"))
38
if err := os.Setenv("XDG_RUNTIME_DIR", tmpDir); err != nil {
39
t.Fatal(err)
40
}
0 commit comments