From 1f08968209f50a1148db7425752efaea0af361a9 Mon Sep 17 00:00:00 2001 From: clover caruso Date: Sat, 10 Oct 2026 20:01:55 -0700 Subject: [PATCH] test(desktop): stop renamed notebook before fixture cleanup Join the reopened notebook background before deleting its fixture cache. A running cache probe can otherwise create a WAL while remove_dir_all removes the directory. Keep the busy, collision and successful rename assertions unchanged. Assisted-by: gpt-6.1-sol --- crates/snowbound/src/library.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/snowbound/src/library.rs b/crates/snowbound/src/library.rs index 9da2a4a5bc323efdbf3e883169b2ca7a62f6f7ea..8aa576c127c21a408509271561e0e1db40021ae9 100644 --- a/crates/snowbound/src/library.rs +++ b/crates/snowbound/src/library.rs @@ -2178,6 +2178,9 @@ mod tests { let renamed = Library::notebook(&location("Ours"), &cache); assert_eq!(renamed.name, "Ours"); assert_eq!(renamed.color(), Some(Notebook::NEW_COLOR)); + if let Some(background) = &renamed.background { + background.stop(); + } notebook::fs::remove_dir_all(&directory).unwrap(); } -- 2.54.0