authorclover caruso <git@paperclover.net> 2026-10-10 20:01:55-07:00
committerclover caruso <git@paperclover.net> 2026-10-10 22:56:05-07:00
log1f08968209f50a1148db7425752efaea0af361a9
tree18611a81ed9a311ab11ba73696ff4556cfc7aec8
parentfd02000fb5fe394ee268e31464c27af71d189e99
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU (~clover)

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

1 files changed, 3 insertions(+), 0 deletions(-)

crates/snowbound/src/library.rs+3
...@@ -2178,6 +2178,9 @@ mod tests {...@@ -2178,6 +2178,9 @@ mod tests {
2178 let renamed = Library::notebook(&location("Ours"), &cache);2178 let renamed = Library::notebook(&location("Ours"), &cache);
2179 assert_eq!(renamed.name, "Ours");2179 assert_eq!(renamed.name, "Ours");
2180 assert_eq!(renamed.color(), Some(Notebook::NEW_COLOR));2180 assert_eq!(renamed.color(), Some(Notebook::NEW_COLOR));
2181 if let Some(background) = &renamed.background {
2182 background.stop();
2183 }
2181 notebook::fs::remove_dir_all(&directory).unwrap();2184 notebook::fs::remove_dir_all(&directory).unwrap();
2182 }2185 }
21832186