fix test cleanup

This commit is contained in:
Felix Ableitner 2024-11-21 10:28:23 +01:00
parent f0838ed965
commit 6dd1fcd2bc

View file

@ -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(())
} }