From 20f02aa70488b907c7369bd5f4ba24d65707a792 Mon Sep 17 00:00:00 2001 From: Chunting Gu Date: Mon, 24 Aug 2020 17:10:48 +0800 Subject: [PATCH] fix a compile error on auto test --- README_zh_CN.md | 1 - autotest/client_timeout_autotest.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README_zh_CN.md b/README_zh_CN.md index d657783..8a27e54 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -297,7 +297,6 @@ void Run(std::size_t workers = 1, std::size_t loops = 1); 服务端 API 提供了一个辅助类 `ResponseBuilder`,方便视图串联起各种参数,最后再生成一个响应对象。和 `RequestBuilder` 完全是同一种策略。 - ### REST Book Server 假定你想创建一个关于书的服务,提供下面这些 REST API: diff --git a/autotest/client_timeout_autotest.cc b/autotest/client_timeout_autotest.cc index 49a13ff..e0bedf9 100644 --- a/autotest/client_timeout_autotest.cc +++ b/autotest/client_timeout_autotest.cc @@ -41,7 +41,7 @@ public: class ClientTimeoutTest : public testing::Test { public: static void SetUpTestCase() { - g_server.reset(new webcc::Server{ kPort }); + g_server.reset(new webcc::Server{ asio::ip::tcp::v4(), kPort }); g_server->Route(webcc::R{ "/sleep/(\\d+)" }, std::make_shared());