Skip to content
Snippets Groups Projects
Unverified Commit 7ba1d989 authored by Nutomic's avatar Nutomic Committed by GitHub
Browse files

Prevent random test failure (#4184)

parent 49377c19
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ full = [ ...@@ -23,6 +23,7 @@ full = [
"tracing", "tracing",
"ts-rs", "ts-rs",
"actix-web", "actix-web",
"lemmy_db_schema/full",
] ]
[dependencies] [dependencies]
......
...@@ -811,9 +811,17 @@ mod tests { ...@@ -811,9 +811,17 @@ mod tests {
CommunityModerator::join(pool, &form).await.unwrap(); CommunityModerator::join(pool, &form).await.unwrap();
// Make sure that they come back as a mod in the list // Make sure that they come back as a mod in the list
let comments = CommentQuery::default().list(pool).await.unwrap(); let comments = CommentQuery {
sort: Some(CommentSortType::New),
..Default::default()
}
.list(pool)
.await
.unwrap();
assert!(comments[1].creator_is_moderator); assert!(!comments[0].creator_is_moderator);
assert!(!comments[1].creator_is_moderator);
assert!(comments[4].creator_is_moderator);
cleanup(data, pool).await; cleanup(data, pool).await;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment