| author | |
| committer | |
| log | 1f08968209f50a1148db7425752efaea0af361a9 |
| tree | 18611a81ed9a311ab11ba73696ff4556cfc7aec8 |
| parent | fd02000fb5fe394ee268e31464c27af71d189e99 |
| signature | Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU (~clover) |
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-sol1 files changed, 3 insertions(+), 0 deletions(-)
crates/snowbound/src/library.rs+3| ... | ... | @@ -2178,6 +2178,9 @@ mod tests { |
| 2178 | 2178 | let renamed = Library::notebook(&location("Ours"), &cache); |
| 2179 | 2179 | assert_eq!(renamed.name, "Ours"); |
| 2180 | 2180 | assert_eq!(renamed.color(), Some(Notebook::NEW_COLOR)); |
| 2181 | if let Some(background) = &renamed.background { | |
| 2182 | background.stop(); | |
| 2183 | } | |
| 2181 | 2184 | notebook::fs::remove_dir_all(&directory).unwrap(); |
| 2182 | 2185 | } |
| 2183 | 2186 |