Skip to content

Commit 221e506

Browse files
committed
Minor non-existent runtime directory test case fix on macOS
1 parent 9bbb602 commit 221e506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: xdg_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,5 +214,5 @@ func TestNonExistentRuntimeDir(t *testing.T) {
214214

215215
p, err := xdg.RuntimeFile("app.pid")
216216
require.NoError(t, err)
217-
require.Equal(t, os.TempDir(), filepath.Dir(p))
217+
require.Equal(t, filepath.Clean(os.TempDir()), filepath.Dir(p))
218218
}

0 commit comments

Comments
 (0)