Skip to content

Commit

Permalink
fix tests assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
amirRamirfatahi committed Dec 20, 2024
1 parent 645497c commit 6513055
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/service/stream/post/reach/engagement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ async fn test_stream_posts_by_engagement_reach_friends_with_tag() -> Result<()>
#[tokio::test]
async fn test_stream_not_found_posts_by_engagement_reach_friends_with_tag() -> Result<()> {
let path = format!("{ROOT_PATH}?sorting=total_engagement&tags=opensource&source=friends&observer_id={EIXAMPLE}&skip=2");
make_wrong_request(&path, Some(404)).await?;
make_wrong_request(&path, Some(204)).await?;

Ok(())
}
2 changes: 1 addition & 1 deletion tests/service/stream/post/reach/timeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ async fn test_stream_not_found_posts_by_timeline_reach_friends_with_tag() -> Res
let path = format!(
"{ROOT_PATH}?sorting=timeline&tags=opensource&source=friends&observer_id={EIXAMPLE}&skip=2"
);
make_wrong_request(&path, Some(404)).await?;
make_wrong_request(&path, Some(204)).await?;

Ok(())
}
2 changes: 1 addition & 1 deletion tests/service/stream/post/tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ async fn test_stream_tag_posts_by_engagement_with_end_skip_and_limit() -> Result
#[tokio::test]
async fn test_post_specific_tag_with_no_result() -> Result<()> {
let path = format!("{}?tags={}", ROOT_PATH, "randommm");
make_wrong_request(&path, None).await?;
make_wrong_request(&path, Some(204)).await?;

Ok(())
}
2 changes: 1 addition & 1 deletion tests/service/stream/user/reach.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async fn test_stream_following() -> Result<()> {
"bad_user_id"
))
.await?;
assert_eq!(res.status(), 404);
assert_eq!(res.status(), 204);

Ok(())
}

0 comments on commit 6513055

Please sign in to comment.