Fixed unit test error on Windows
This commit is contained in:
parent
f4aaba6362
commit
531f6ab84d
10
test/test.cc
10
test/test.cc
@ -792,15 +792,7 @@ TEST_F(ServerTest, GetMethodDir) {
|
||||
EXPECT_EQ(200, res->status);
|
||||
EXPECT_EQ("text/html", res->get_header_value("Content-Type"));
|
||||
|
||||
auto body = R"(<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/dir/test.html">Test</a>
|
||||
<a href="/hi">hi</a>
|
||||
</body>
|
||||
</html>
|
||||
)";
|
||||
auto body = "<html>\r\n<head>\r\n</head>\r\n<body>\r\n <a href=\"/dir/test.html\">Test</a>\r\n <a href=\"/hi\">hi</a>\r\n</body>\r\n</html>\r\n";
|
||||
EXPECT_EQ(body, res->body);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user