Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
formatting reverted to original
Browse files Browse the repository at this point in the history
Dmitriy Zaytsev committed Jan 16, 2025
1 parent b1aea20 commit 7d12d5e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/unittest.cpp
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ class HttpClient
c(ic)
{
c.connect(asio::ip::tcp::endpoint(asio::ip::make_address(address),
port));
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

0 comments on commit 7d12d5e

Please sign in to comment.