Remove all instances before testing

pull/883/head
Kitaiti Makoto 3 years ago
parent dbf36ddf05
commit f9e7d2bb23

@ -247,6 +247,7 @@ pub(crate) mod tests {
use diesel::Connection;
pub(crate) fn fill_database(conn: &Conn) -> Vec<(NewInstance, Instance)> {
diesel::delete(instances::table).execute(conn).unwrap();
let res = vec![
NewInstance {
default_license: "WTFPL".to_string(),

Loading…
Cancel
Save