Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in tests #2284

Merged
merged 1 commit into from
May 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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