mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 22:31:20 +00:00
fix test cleanup
This commit is contained in:
parent
f0838ed965
commit
6dd1fcd2bc
1 changed files with 5 additions and 5 deletions
|
@ -322,7 +322,7 @@ pub(crate) mod tests {
|
||||||
CommunityFollowerState,
|
CommunityFollowerState,
|
||||||
CommunityInsertForm,
|
CommunityInsertForm,
|
||||||
},
|
},
|
||||||
local_user::LocalUser,
|
person::Person,
|
||||||
},
|
},
|
||||||
traits::{Crud, Followable},
|
traits::{Crud, Followable},
|
||||||
};
|
};
|
||||||
|
@ -376,8 +376,8 @@ pub(crate) mod tests {
|
||||||
assert_eq!(follows.len(), 1);
|
assert_eq!(follows.len(), 1);
|
||||||
assert_eq!(follows[0].community.actor_id, community.actor_id);
|
assert_eq!(follows[0].community.actor_id, community.actor_id);
|
||||||
|
|
||||||
LocalUser::delete(pool, export_user.local_user.id).await?;
|
Person::delete(pool, export_user.person.id).await?;
|
||||||
LocalUser::delete(pool, import_user.local_user.id).await?;
|
Person::delete(pool, import_user.person.id).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -412,8 +412,8 @@ pub(crate) mod tests {
|
||||||
Some(LemmyErrorType::TooManyItems)
|
Some(LemmyErrorType::TooManyItems)
|
||||||
);
|
);
|
||||||
|
|
||||||
LocalUser::delete(pool, export_user.local_user.id).await?;
|
Person::delete(pool, export_user.person.id).await?;
|
||||||
LocalUser::delete(pool, import_user.local_user.id).await?;
|
Person::delete(pool, import_user.person.id).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue