Skip to content

Commit 78b8bdd

Browse files
committed
restore XDG_RUNTIME_DIR to original value in test
Signed-off-by: Cory Bennett <[email protected]>
1 parent 53adcbf commit 78b8bdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

console_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestTempConsole(t *testing.T) {
3434
func TestTempConsoleWithXdgRuntimeDir(t *testing.T) {
3535
tmpDir := "/tmp/foo"
3636
// prevent interferring with other tests
37-
defer os.Setenv("XDG_RUNTIME_DIR", "")
37+
defer os.Setenv("XDG_RUNTIME_DIR", os.Getenv("XDG_RUNTIME_DIR"))
3838
if err := os.Setenv("XDG_RUNTIME_DIR", tmpDir); err != nil {
3939
t.Fatal(err)
4040
}

0 commit comments

Comments
 (0)