From 5ff221a2e4f1968cdd705f696f8f2b74084aee41 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 20 Jun 2023 14:14:08 -0400 Subject: [PATCH] Fixing comment_view unit tests. (#3224) --- crates/db_views/src/comment_view.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/db_views/src/comment_view.rs b/crates/db_views/src/comment_view.rs index 6ac629b5a..7c33158d6 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()