From 7265e83e449505495d95892e4467fb22e4ebe1c7 Mon Sep 17 00:00:00 2001 From: Hare Date: Thu, 28 May 2026 18:53:52 +0900 Subject: [PATCH] test: fix runtime dir expectation --- crates/manifest/src/paths.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/manifest/src/paths.rs b/crates/manifest/src/paths.rs index f17ae616..100fa6de 100644 --- a/crates/manifest/src/paths.rs +++ b/crates/manifest/src/paths.rs @@ -279,9 +279,12 @@ mod tests { fn runtime_dir_prefers_xdg_runtime_dir() { let _g = EnvGuard::new(&[ ("HOME", Some("/h")), - ("XDG_RUNTIME_DIR", Some("/run/user/1000")), + ("XDG_RUNTIME_DIR", Some("/xdg-runtime")), ]); - assert_eq!(runtime_dir().unwrap(), PathBuf::from("")); + assert_eq!( + runtime_dir().unwrap(), + PathBuf::from("/xdg-runtime/insomnia") + ); } #[test]