GeezerVison is showing github.com — formatting reverted to original · CrowCpp/Crow@f333d40
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: tests/unittest.cpp +5-6Lines changed: 5 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -38,8 +38,8 @@ class HttpClient |
38 | 38 | HttpClient(std::string const& address, uint16_t port): |
39 | 39 | c(ic) |
40 | 40 | { |
41 | | - c.connect(asio::ip::tcp::endpoint(asio::ip::make_address(address), |
42 | | - port)); |
| 41 | + c.connect(asio::ip::tcp::endpoint( asio::ip::make_address(address), |
| 42 | + port)); |
43 | 43 | } |
44 | 44 |
|
45 | 45 | /** sends a request string through the socket */ |
@@ -674,8 +674,8 @@ TEST_CASE("server_handling_error_request_http_version") |
674 | 674 | try |
675 | 675 | { |
676 | 676 | auto resp = HttpClient::request(LOCALHOST_ADDRESS, |
677 | | - 45451, |
678 | | - "POST /\r\nContent-Length:3\r\nX-HeaderTest: 123\r\n\r\nA=B\r\n"); |
| 677 | + 45451, |
| 678 | + "POST /\r\nContent-Length:3\r\nX-HeaderTest: 123\r\n\r\nA=B\r\n"); |
679 | 679 | FAIL_CHECK(); |
680 | 680 | } |
681 | 681 | catch (std::exception& e) |
@@ -1974,8 +1974,6 @@ TEST_CASE("middleware_cors") |
1974 | 1974 | return "-"; |
1975 | 1975 | }); |
1976 | 1976 |
|
1977 | | - |
1978 | | - |
1979 | 1977 | const auto port = 33333; |
1980 | 1978 | auto _ = app.bindaddr(LOCALHOST_ADDRESS).port(port).run_async(); |
1981 | 1979 | app.wait_for_server_start(); |
@@ -2415,6 +2413,7 @@ TEST_CASE("multipart") |
2415 | 2413 |
|
2416 | 2414 | CHECK(res.code == 400); |
2417 | 2415 | CHECK(res.body == "Empty boundary in multipart message"); |
| 2416 | + |
2418 | 2417 | } |
2419 | 2418 |
|
2420 | 2419 | //Boundary that differs from actual boundary |
|