Skip to content

Commit 20d425d

Browse files
tests: delete db file when dropping
1 parent f84f4c0 commit 20d425d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/fixtures/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ impl Drop for TestDb {
3333
if let Ok(mut conn) = SqliteConnection::establish(DB_PATH.to_str().unwrap()) {
3434
let _ = conn.revert_all_migrations(MIGRATIONS);
3535
}
36+
37+
// Delete the database file
38+
fs::remove_file(DB_PATH.clone()).expect("Failed to delete test database");
3639
}
3740
}
3841
}

0 commit comments

Comments
 (0)