Fixing comment_view unit tests. (#3224)

fix_cors_2 0.18.0-rc.3
Dessalines 2023-06-20 14:14:08 -04:00 committed by GitHub
parent 8ed3f3530e
commit 5ff221a2e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View 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()