Don't remove records after testing

This commit is contained in:
Kitaiti Makoto
2021-01-24 22:31:57 +09:00
parent 4ef6561cc6
commit b5eb2628f9
2 changed files with 2 additions and 14 deletions
-5
View File
@@ -151,11 +151,6 @@ mod tests {
searcher.search_document(&conn, Query::from_str(&title).unwrap(), (0, 1))[0].id,
post_id
);
// TODO: Make sure records are deleted even when assertion failed
post.delete(&conn).unwrap();
blog.delete(&conn).unwrap();
user.delete(&conn).unwrap();
diesel::delete(&instance).execute(&conn).unwrap();
}
fn fill_database(conn: &Conn) -> (Instance, User, Blog) {