Test changes
Rust Build / Rustfmt (pull_request) Successful in 52s
Rust Build / Test Suite (pull_request) Failing after 1m32s
Rust Build / Clippy (pull_request) Successful in 1m6s
Rust Build / Check (pull_request) Successful in 2m3s
Rust Build / build (pull_request) Successful in 1m40s

This commit is contained in:
2026-06-11 17:28:57 -04:00
parent 514ec697e8
commit 5b85b5b469
+13 -11
View File
@@ -439,18 +439,20 @@ async fn test_login_service_user() {
let app = init::routes().await.layer(axum::Extension(pool));
match register_service_user(&app).await {
Ok(user) => match login_service_user(&app, TEST_SERVICE_USERNAME, TEST_SERVICE_PASSPHRASE).await {
Ok(login_result) => {
assert_eq!(
false,
login_result.access_token.is_empty(),
"Access token is empty when it should not be"
);
Ok(_user) => {
match login_service_user(&app, TEST_SERVICE_USERNAME, TEST_SERVICE_PASSPHRASE).await {
Ok(login_result) => {
assert_eq!(
false,
login_result.access_token.is_empty(),
"Access token is empty when it should not be"
);
}
Err(err) => {
assert!(false, "Error: {err:?}");
}
}
Err(err) => {
assert!(false, "Error: {err:?}");
}
},
}
Err(err) => {
assert!(false, "Error: {err:?}");
}