From e0eac838ef47d736be7f29c349939d243be4b55e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Pr=C3=A9vost?= Date: Mon, 19 Feb 2024 08:51:44 +0100 Subject: [PATCH] Fix test for Windows platform --- src/server/log_http_server/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/log_http_server/mod.rs b/src/server/log_http_server/mod.rs index c1d5fd6..5cce739 100644 --- a/src/server/log_http_server/mod.rs +++ b/src/server/log_http_server/mod.rs @@ -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);