chore: remove sqlite database before test
This commit is contained in:
parent
1602069eb5
commit
128047723d
1 changed files with 20 additions and 16 deletions
|
@ -528,6 +528,7 @@ mod upgrade {
|
|||
})?;
|
||||
|
||||
#[cfg(any(feature = "sqlite", feature = "rusqlite"))]
|
||||
remove_sqlite_db().and_then(|_| {
|
||||
inner("sqlite_invalid", || {
|
||||
use rusqlite::Connection;
|
||||
|
||||
|
@ -539,6 +540,7 @@ mod upgrade {
|
|||
assert!(persons_res.is_err());
|
||||
|
||||
Ok(())
|
||||
})
|
||||
})?;
|
||||
|
||||
Ok(())
|
||||
|
@ -578,6 +580,7 @@ mod upgrade {
|
|||
})?;
|
||||
|
||||
#[cfg(any(feature = "sqlite", feature = "rusqlite"))]
|
||||
remove_sqlite_db().and_then(|_| {
|
||||
inner("sqlite_invalid", || {
|
||||
use rusqlite::Connection;
|
||||
|
||||
|
@ -589,6 +592,7 @@ mod upgrade {
|
|||
assert!(persons_res.is_err());
|
||||
|
||||
Ok(())
|
||||
})
|
||||
})?;
|
||||
|
||||
Ok(())
|
||||
|
|
Reference in a new issue