Skip to content

Commit

Permalink
Fix test for Windows platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Prévost committed Feb 19, 2024
1 parent ec41d0f commit e0eac83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/log_http_server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ mod tests {
tokio::time::sleep(tokio::time::Duration::from_millis(1)).await; // To ensure server task is scheduled before client
let get_index_response = reqwest::get("http://127.0.0.1:8080").await.unwrap();
assert_eq!(get_index_response.status(), 200);
assert_eq!(get_index_response.text().await.unwrap().replace("\r", ""), EXPECTED_INDEX_BODY);
assert_eq!(get_index_response.text().await.unwrap(), EXPECTED_INDEX_BODY);

let get_messages_response = reqwest::get("http://127.0.0.1:8080/messages").await.unwrap();
assert_eq!(get_messages_response.status(), 200);
Expand Down

0 comments on commit e0eac83

Please sign in to comment.