]> Untitled Git - lemmy.git/commitdiff
Fixing comment_view unit tests. (#3224)
authorDessalines <dessalines@users.noreply.github.com>
Tue, 20 Jun 2023 18:14:08 +0000 (14:14 -0400)
committerGitHub <noreply@github.com>
Tue, 20 Jun 2023 18:14:08 +0000 (14:14 -0400)
crates/db_views/src/comment_view.rs

index 6ac629b5a02d41f8bd0dbe7684b79211e4d27b1f..7c33158d6e03e174192ce89cdf812f52297248d0 100644 (file)
@@ -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()