From 33e40fb634a8a77f58126f9b9ac6fc5f5eb6a4ac Mon Sep 17 00:00:00 2001 From: davidemazzocchi Date: Tue, 13 Jan 2026 07:21:39 +0100 Subject: [PATCH] fix: avoid init and writig db file during automatic tests --- 01.workspace/heave/src/tst/catalog_get_by.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/01.workspace/heave/src/tst/catalog_get_by.rs b/01.workspace/heave/src/tst/catalog_get_by.rs index 162b9d5..dfa67ac 100644 --- a/01.workspace/heave/src/tst/catalog_get_by.rs +++ b/01.workspace/heave/src/tst/catalog_get_by.rs @@ -7,9 +7,7 @@ mod tests { if fs_path.exists() { std::fs::remove_file(fs_path).unwrap(); } - let catalog = Catalog::new(&path); - catalog.init().unwrap(); - catalog + Catalog::new(&path) } #[test] fn get_by_finds_item() {