mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
fix compilation
This commit is contained in:
@@ -526,10 +526,10 @@ mod tests {
|
|||||||
|
|
||||||
let client = TestClient::new(app);
|
let client = TestClient::new(app);
|
||||||
|
|
||||||
let res = client.get("/").send().await;
|
let res = client.get("/").await;
|
||||||
assert_eq!(res.status(), StatusCode::INTERNAL_SERVER_ERROR);
|
assert_eq!(res.status(), StatusCode::INTERNAL_SERVER_ERROR);
|
||||||
|
|
||||||
let res = client.get("/two").send().await;
|
let res = client.get("/two").await;
|
||||||
assert_eq!(res.status(), StatusCode::IM_A_TEAPOT);
|
assert_eq!(res.status(), StatusCode::IM_A_TEAPOT);
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user