From f333d4005a012ac63eb1fe5e56f87bc3b3d4b8ac Mon Sep 17 00:00:00 2001 From: Dmitriy Zaytsev Date: Thu, 16 Jan 2025 16:56:17 +0300 Subject: [PATCH] formatting reverted to original --- tests/unittest.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/unittest.cpp b/tests/unittest.cpp index abe82363e..594a33893 100644 --- a/tests/unittest.cpp +++ b/tests/unittest.cpp @@ -38,8 +38,8 @@ class HttpClient HttpClient(std::string const& address, uint16_t port): c(ic) { - c.connect(asio::ip::tcp::endpoint(asio::ip::make_address(address), - port)); + c.connect(asio::ip::tcp::endpoint( asio::ip::make_address(address), + port)); } /** sends a request string through the socket */ @@ -674,8 +674,8 @@ TEST_CASE("server_handling_error_request_http_version") try { auto resp = HttpClient::request(LOCALHOST_ADDRESS, - 45451, - "POST /\r\nContent-Length:3\r\nX-HeaderTest: 123\r\n\r\nA=B\r\n"); + 45451, + "POST /\r\nContent-Length:3\r\nX-HeaderTest: 123\r\n\r\nA=B\r\n"); FAIL_CHECK(); } catch (std::exception& e) @@ -1974,8 +1974,6 @@ TEST_CASE("middleware_cors") return "-"; }); - - const auto port = 33333; auto _ = app.bindaddr(LOCALHOST_ADDRESS).port(port).run_async(); app.wait_for_server_start(); @@ -2415,6 +2413,7 @@ TEST_CASE("multipart") CHECK(res.code == 400); CHECK(res.body == "Empty boundary in multipart message"); + } //Boundary that differs from actual boundary