Skip to content

Commit

Permalink
feat: improve unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mgierada committed Oct 9, 2023
1 parent 116e9c1 commit 1f97260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/test_error_handlers/test_error_handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mod tests {
#[test]
fn test_unauthorized_handler() {
let client = Client::untracked(rocket()).expect("valid rocket instance");
let response = client.get("/office/corner/on").dispatch();
let response = client.get("/standing/right/on").dispatch();
assert_eq!(response.status(), Status::Unauthorized);
let body = response.into_string().expect("response into string");
let error: AuthError = serde_json::from_str(&body).expect("deserialize error");
Expand Down

0 comments on commit 1f97260

Please sign in to comment.