From 228845d7338cfe0e0270c524ca4c2d2baa835a2e Mon Sep 17 00:00:00 2001 From: Alexander Liesenfeld Date: Sun, 7 Jan 2024 23:16:54 +0100 Subject: [PATCH] Remove duplicated test --- tests/examples/mass_tests.rs | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 tests/examples/mass_tests.rs diff --git a/tests/examples/mass_tests.rs b/tests/examples/mass_tests.rs deleted file mode 100644 index 5db64790..00000000 --- a/tests/examples/mass_tests.rs +++ /dev/null @@ -1,31 +0,0 @@ -use httpmock::prelude::*; -use isahc::{prelude::*, Request}; - -#[test] -fn cookie_matching_test() { - // Arrange - let server = MockServer::start(); - - let mock = server.mock(|when, then| { - when.method(GET) - .path("/") - .cookie_exists("SESSIONID") - .cookie("SESSIONID", "298zf09hf012fh2"); - then.status(200); - }); - - // Act: Send the request and deserialize the response to JSON - let response = Request::get(&format!("http://{}", server.address())) - .header( - "Cookie", - "OTHERCOOKIE1=01234; SESSIONID=298zf09hf012fh2; OTHERCOOKIE2=56789; HttpOnly", - ) - .body(()) - .unwrap() - .send() - .unwrap(); - - // Assert - mock.assert(); - assert_eq!(response.status(), 200); -}