test: remove file after closing for a test
This commit is contained in:
committed by
Bogdan-Ștefan Neacşu
parent
2cbfdd22c9
commit
6bbdb462d0
@@ -160,7 +160,7 @@ mod tests {
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
let guard = SqlitePoolGuard::new(database_path, connection_pool);
|
||||
let guard = SqlitePoolGuard::new(database_path.clone(), connection_pool);
|
||||
assert!(
|
||||
guard
|
||||
.wait_for_db_files_close()
|
||||
@@ -170,5 +170,6 @@ mod tests {
|
||||
);
|
||||
|
||||
assert!(guard.close_pool_inner().await.is_ok());
|
||||
tokio::fs::remove_file(database_path).await.unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user