fix: Add sending queue to ng web server (#2273)

This commit is contained in:
Sergey Kuznetsov
2025-07-09 17:29:57 +01:00
committed by GitHub
parent 413b823976
commit bfe5b52a64
13 changed files with 401 additions and 85 deletions

View File

@@ -246,6 +246,7 @@ TEST_F(ServerHttpTest, ClientDisconnects)
[&]() { ASSERT_FALSE(maybeError.has_value()) << maybeError->message(); }();
client.disconnect();
server_->stop(yield);
ctx_.stop();
});
@@ -304,6 +305,7 @@ TEST_F(ServerHttpTest, OnConnectCheck)
timer.async_wait(yield[error]);
client.gracefulShutdown();
server_->stop(yield);
ctx_.stop();
});
@@ -362,6 +364,7 @@ TEST_F(ServerHttpTest, OnConnectCheckFailed)
EXPECT_EQ(response->version(), 11);
client.gracefulShutdown();
server_->stop(yield);
ctx_.stop();
});
@@ -415,6 +418,7 @@ TEST_F(ServerHttpTest, OnDisconnectHook)
boost::system::error_code error;
timer.async_wait(yield[error]);
server_->stop(yield);
ctx_.stop();
});
@@ -477,6 +481,7 @@ TEST_P(ServerHttpTest, RequestResponse)
}
client.gracefulShutdown();
server_->stop(yield);
ctx_.stop();
});
@@ -516,6 +521,7 @@ TEST_F(ServerTest, WsClientDisconnects)
[&]() { ASSERT_FALSE(maybeError.has_value()) << maybeError->message(); }();
client.close();
server_->stop(yield);
ctx_.stop();
});
@@ -546,6 +552,7 @@ TEST_F(ServerTest, WsRequestResponse)
}
client.gracefulClose(yield, std::chrono::milliseconds{100});
server_->stop(yield);
ctx_.stop();
});