Archived
1
0
Fork 0

chore: remove sqlite database before test

This commit is contained in:
Dmitriy Pleshevskiy 2021-05-23 12:33:14 +03:00
parent 1602069eb5
commit 128047723d

View file

@ -528,6 +528,7 @@ mod upgrade {
})?; })?;
#[cfg(any(feature = "sqlite", feature = "rusqlite"))] #[cfg(any(feature = "sqlite", feature = "rusqlite"))]
remove_sqlite_db().and_then(|_| {
inner("sqlite_invalid", || { inner("sqlite_invalid", || {
use rusqlite::Connection; use rusqlite::Connection;
@ -539,6 +540,7 @@ mod upgrade {
assert!(persons_res.is_err()); assert!(persons_res.is_err());
Ok(()) Ok(())
})
})?; })?;
Ok(()) Ok(())
@ -578,6 +580,7 @@ mod upgrade {
})?; })?;
#[cfg(any(feature = "sqlite", feature = "rusqlite"))] #[cfg(any(feature = "sqlite", feature = "rusqlite"))]
remove_sqlite_db().and_then(|_| {
inner("sqlite_invalid", || { inner("sqlite_invalid", || {
use rusqlite::Connection; use rusqlite::Connection;
@ -589,6 +592,7 @@ mod upgrade {
assert!(persons_res.is_err()); assert!(persons_res.is_err());
Ok(()) Ok(())
})
})?; })?;
Ok(()) Ok(())