mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-02 17:45:57 +00:00
fix: Add sending queue to ng web server (#2273)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user