Saving changes
All checks were successful
Rust Build / Check (pull_request) Successful in 41s
Rust Build / Test Suite (pull_request) Successful in 52s
Rust Build / Rustfmt (pull_request) Successful in 29s
Rust Build / Clippy (pull_request) Successful in 1m3s
Rust Build / build (pull_request) Successful in 1m19s
All checks were successful
Rust Build / Check (pull_request) Successful in 41s
Rust Build / Test Suite (pull_request) Successful in 52s
Rust Build / Rustfmt (pull_request) Successful in 29s
Rust Build / Clippy (pull_request) Successful in 1m3s
Rust Build / build (pull_request) Successful in 1m19s
This commit is contained in:
15
src/main.rs
15
src/main.rs
@@ -191,10 +191,9 @@ mod tests {
|
||||
|
||||
let app = init::routes().await.layer(axum::Extension(pool));
|
||||
|
||||
let usr = icarus_auth::models::common::CreateUser {
|
||||
username: String::from("somethingsss"),
|
||||
password: String::from("Raindown!"),
|
||||
};
|
||||
let mut usr = icarus_auth::callers::register::request::Request::default();
|
||||
usr.username = String::from("somethingsss");
|
||||
usr.password = String::from("Raindown!");
|
||||
|
||||
let payload = json!({
|
||||
"username": &usr.username,
|
||||
@@ -214,7 +213,13 @@ mod tests {
|
||||
|
||||
match response {
|
||||
Ok(resp) => {
|
||||
assert_eq!(resp.status(), StatusCode::CREATED, "Message: {:?}", resp);
|
||||
assert_eq!(
|
||||
resp.status(),
|
||||
StatusCode::CREATED,
|
||||
"Message: {:?} {:?}",
|
||||
resp,
|
||||
usr.username
|
||||
);
|
||||
let body = axum::body::to_bytes(resp.into_body(), usize::MAX)
|
||||
.await
|
||||
.unwrap();
|
||||
|
Reference in New Issue
Block a user