Skip to content

Commit

Permalink
formatting reverted to original
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Zaytsev committed Jan 16, 2025
1 parent b1aea20 commit bf73704
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bf73704

Please sign in to comment.