fixed failed tests with corrected error strings

This commit is contained in:
Letro Bot
2026-04-04 15:50:28 +03:30
parent 8a97028383
commit 2a363aefdd

View File

@@ -626,7 +626,7 @@ mod tests {
cookies.save_cookies(&response);
response.assert_status(StatusCode::OK);
assert!(
response.body().contains("Username is too long"),
response.body().contains("PostNumber is too long"),
"response body: {}",
response.body()
);
@@ -680,7 +680,7 @@ mod tests {
let response = state.request(request).await;
cookies.save_cookies(&response);
response.assert_status(StatusCode::OK);
assert!(response.body().contains("This username is already taken"));
assert!(response.body().contains("This postNumber is already taken"));
}
/// When the username is already reserved on the homeserver, it should give
@@ -726,7 +726,7 @@ mod tests {
let response = state.request(request).await;
cookies.save_cookies(&response);
response.assert_status(StatusCode::OK);
assert!(response.body().contains("This username is already taken"));
assert!(response.body().contains("This postNumber is already taken"));
}
/// Test registration without email when email is not required