diff --git a/xdg_test.go b/xdg_test.go index 0d0ac35..53d0604 100644 --- a/xdg_test.go +++ b/xdg_test.go @@ -214,5 +214,5 @@ func TestNonExistentRuntimeDir(t *testing.T) { p, err := xdg.RuntimeFile("app.pid") require.NoError(t, err) - require.Equal(t, os.TempDir(), filepath.Dir(p)) + require.Equal(t, filepath.Clean(os.TempDir()), filepath.Dir(p)) }