mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-11 12:35:54 +00:00
fix
This commit is contained in:
parent
50ab303c42
commit
350fba29a8
1 changed files with 3 additions and 3 deletions
|
@ -145,21 +145,21 @@ mod tests {
|
||||||
assert_eq!(0, after_post_like_remove.post_score);
|
assert_eq!(0, after_post_like_remove.post_score);
|
||||||
|
|
||||||
Comment::update(
|
Comment::update(
|
||||||
pool,
|
&mut *conn,
|
||||||
inserted_comment.id,
|
inserted_comment.id,
|
||||||
&CommentUpdateForm::builder().removed(Some(true)).build(),
|
&CommentUpdateForm::builder().removed(Some(true)).build(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
Comment::update(
|
Comment::update(
|
||||||
pool,
|
&mut *conn,
|
||||||
inserted_child_comment.id,
|
inserted_child_comment.id,
|
||||||
&CommentUpdateForm::builder().removed(Some(true)).build(),
|
&CommentUpdateForm::builder().removed(Some(true)).build(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let after_parent_comment_removed = PersonAggregates::read(pool, inserted_person.id)
|
let after_parent_comment_removed = PersonAggregates::read(&mut *conn, inserted_person.id)
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert_eq!(0, after_parent_comment_removed.comment_count);
|
assert_eq!(0, after_parent_comment_removed.comment_count);
|
||||||
|
|
Loading…
Reference in a new issue