fix: avoid init and writig db file during automatic tests
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user