mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 13:31:02 +00:00
Remove all instances before testing
This commit is contained in:
parent
dbf36ddf05
commit
f9e7d2bb23
1 changed files with 1 additions and 0 deletions
|
@ -247,6 +247,7 @@ pub(crate) mod tests {
|
||||||
use diesel::Connection;
|
use diesel::Connection;
|
||||||
|
|
||||||
pub(crate) fn fill_database(conn: &Conn) -> Vec<(NewInstance, Instance)> {
|
pub(crate) fn fill_database(conn: &Conn) -> Vec<(NewInstance, Instance)> {
|
||||||
|
diesel::delete(instances::table).execute(conn).unwrap();
|
||||||
let res = vec![
|
let res = vec![
|
||||||
NewInstance {
|
NewInstance {
|
||||||
default_license: "WTFPL".to_string(),
|
default_license: "WTFPL".to_string(),
|
||||||
|
|
Loading…
Reference in a new issue