Skip to content

Commit

Permalink
Fix typos in tests (#2284)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed May 11, 2024
1 parent 7e7011a commit 3da5283
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async fn auto_headers() {
}

#[tokio::test]
async fn donot_set_conent_length_0_if_have_no_body() {
async fn donot_set_content_length_0_if_have_no_body() {
let server = server::http(move |req| async move {
let headers = req.headers();
assert_eq!(headers.get(CONTENT_LENGTH), None);
Expand All @@ -70,7 +70,7 @@ async fn donot_set_conent_length_0_if_have_no_body() {
http::Response::default()
});

let url = format!("http://{}/conent-length", server.addr());
let url = format!("http://{}/content-length", server.addr());
let res = reqwest::Client::builder()
.no_proxy()
.build()
Expand Down Expand Up @@ -466,7 +466,7 @@ async fn test_tls_info() {
assert!(tls_info.is_none());
}

// NOTE: using the default "curernt_thread" runtime here would cause the test to
// NOTE: using the default "current_thread" runtime here would cause the test to
// fail, because the only thread would block until `panic_rx` receives a
// notification while the client needs to be driven to get the graceful shutdown
// done.
Expand Down

0 comments on commit 3da5283

Please sign in to comment.