mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 14:21:19 +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,
|
||||
CommunityInsertForm,
|
||||
},
|
||||
local_user::LocalUser,
|
||||
person::Person,
|
||||
},
|
||||
traits::{Crud, Followable},
|
||||
};
|
||||
|
@ -376,8 +376,8 @@ pub(crate) mod tests {
|
|||
assert_eq!(follows.len(), 1);
|
||||
assert_eq!(follows[0].community.actor_id, community.actor_id);
|
||||
|
||||
LocalUser::delete(pool, export_user.local_user.id).await?;
|
||||
LocalUser::delete(pool, import_user.local_user.id).await?;
|
||||
Person::delete(pool, export_user.person.id).await?;
|
||||
Person::delete(pool, import_user.person.id).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -412,8 +412,8 @@ pub(crate) mod tests {
|
|||
Some(LemmyErrorType::TooManyItems)
|
||||
);
|
||||
|
||||
LocalUser::delete(pool, export_user.local_user.id).await?;
|
||||
LocalUser::delete(pool, import_user.local_user.id).await?;
|
||||
Person::delete(pool, export_user.person.id).await?;
|
||||
Person::delete(pool, import_user.person.id).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue