websocket tests have larger timeouts.

The tests fail on freebsd.
This commit is contained in:
Klemens
2022-12-20 15:29:14 +08:00
committed by Klemens Morgenstern
parent 027c544a3a
commit f7079044a7
2 changed files with 4 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ public:
flat_buffer b;
ws1.set_option(stream_base::timeout{
stream_base::none(),
std::chrono::milliseconds(50),
std::chrono::milliseconds(200),
false});
ws1.async_read(b, test::success_handler());
ws2.async_write(net::const_buffer("Hello, world!", 13),
@@ -92,7 +92,7 @@ public:
flat_buffer b;
ws1.set_option(stream_base::timeout{
stream_base::none(),
std::chrono::milliseconds(50),
std::chrono::milliseconds(200),
false});
ws1.async_read(b, test::success_handler());
ws2.async_write(net::const_buffer("Hello, world!", 13),
@@ -150,7 +150,7 @@ public:
auto b = asio::dynamic_buffer(res);
ws1.set_option(stream_base::timeout{
stream_base::none(),
std::chrono::milliseconds(50),
std::chrono::milliseconds(200),
false});
ws1.async_read(b, test::success_handler());
ws2.async_write(net::const_buffer("Hello, world!", 13),

View File

@@ -42,7 +42,7 @@ struct timer_test : unit_test::suite
ws2.set_option(stream_base::timeout{
stream_base::none(),
std::chrono::milliseconds(100),
std::chrono::milliseconds(200),
true});
flat_buffer b1;
flat_buffer b2;