From: Dessalines Date: Tue, 20 Jun 2023 18:14:08 +0000 (-0400) Subject: Fixing comment_view unit tests. (#3224) X-Git-Url: http://these/git/%22%7B%7D/static/gitweb.js?a=commitdiff_plain;h=5ff221a2e4f1968cdd705f696f8f2b74084aee41;p=lemmy.git Fixing comment_view unit tests. (#3224) --- diff --git a/crates/db_views/src/comment_view.rs b/crates/db_views/src/comment_view.rs index 6ac629b5..7c33158d 100644 --- a/crates/db_views/src/comment_view.rs +++ b/crates/db_views/src/comment_view.rs @@ -600,7 +600,7 @@ mod tests { let read_comment_views_no_person = CommentQuery::builder() .pool(pool) - .sort(Some(CommentSortType::Hot)) + .sort(Some(CommentSortType::Old)) .post_id(Some(data.inserted_post.id)) .build() .list() @@ -614,7 +614,7 @@ mod tests { let read_comment_views_with_person = CommentQuery::builder() .pool(pool) - .sort(Some(CommentSortType::Hot)) + .sort(Some(CommentSortType::Old)) .post_id(Some(data.inserted_post.id)) .local_user(Some(&data.inserted_local_user)) .build()