diff --git a/tests/tests.rs b/tests/tests.rs index dd0c2fe..39d5a6d 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -135,7 +135,7 @@ pub mod requests { } - pub async fn login_service_user(app: &axum::Router, username: &String, passphrase: &String) -> Result { + pub async fn login_service_user(app: &axum::Router, username: &str, passphrase: &str) -> Result { let payload = serde_json::json!({ "username": username, "passphrase": passphrase, @@ -255,7 +255,7 @@ async fn register_service_user(app: &axum::Router,) -> Result Result { +async fn login_service_user(app: &axum::Router, username: &str, passphrase: &str) -> Result { match requests::login_service_user(&app, username, passphrase).await { Ok(response) => { if axum::http::StatusCode::OK != response.status() {