polished up event loop changes
Some checks failed
Docker Build & Publish / build (push) Failing after 55m49s
Some checks failed
Docker Build & Publish / build (push) Failing after 55m49s
This commit is contained in:
parent
058c395095
commit
409024e04a
18 changed files with 354 additions and 428 deletions
|
|
@ -1,9 +1,10 @@
|
|||
#include <gtest/gtest.h>
|
||||
#include <fstream>
|
||||
#include "../lib/http/request.hpp"
|
||||
#include <boost/beast.hpp>
|
||||
#include <fstream>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(unit_tests, single_request_parse) {
|
||||
TEST(unit_tests, single_request_parse)
|
||||
{
|
||||
std::ifstream t("./test_files/test_request.http");
|
||||
std::stringstream buffer;
|
||||
buffer << t.rdbuf();
|
||||
|
|
@ -11,7 +12,7 @@ TEST(unit_tests, single_request_parse) {
|
|||
std::string raw_req = buffer.str();
|
||||
std::string expected = buffer.str();
|
||||
|
||||
anthracite::http::request req (raw_req, "0.0.0.0");
|
||||
anthracite::http::request req(raw_req, "0.0.0.0");
|
||||
|
||||
ASSERT_EQ(expected, req.to_string());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue