From 1f9726002baf5b6cefe1345c0373f03a2d4b5760 Mon Sep 17 00:00:00 2001 From: Maciej Gierada Date: Mon, 9 Oct 2023 17:15:55 +0200 Subject: [PATCH] feat: improve unit tests --- src/tests/test_error_handlers/test_error_handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/test_error_handlers/test_error_handlers.rs b/src/tests/test_error_handlers/test_error_handlers.rs index 00f8e9c..acae742 100644 --- a/src/tests/test_error_handlers/test_error_handlers.rs +++ b/src/tests/test_error_handlers/test_error_handlers.rs @@ -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");