Skip to content

Commit

Permalink
wip: added logging to some failed test cases in order to get deeper u…
Browse files Browse the repository at this point in the history
…nderstanding of what is going on
  • Loading branch information
MathisBurger committed Oct 21, 2024
1 parent 8601b9d commit 1ed3ed5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasky/tests/routes/a_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ async fn test_create_group_as_tutor() {
});
req = tutor(req);
let resp = test::call_service(&app, req.to_request()).await;
println!("{:?}", resp.into_body());
assert!(resp.status().is_success())
}

Expand Down Expand Up @@ -122,6 +123,7 @@ async fn test_get_group_as_tutor() {
let mut req = test::TestRequest::get().uri("/groups/1");
req = tutor(req);
let resp = test::call_service(&app, req.to_request()).await;
println!("{:?}", resp.into_body());
assert!(resp.status().is_success());
}

Expand All @@ -131,5 +133,6 @@ async fn test_get_group_as_admin() {
let mut req = test::TestRequest::get().uri("/groups/1");
req = admin(req);
let resp = test::call_service(&app, req.to_request()).await;
println!("{:?}", resp.into_body());
assert!(resp.status().is_success());
}

0 comments on commit 1ed3ed5

Please sign in to comment.