mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
catch test error condition better
This commit is contained in:
@@ -87,7 +87,10 @@ using websocketpp::lib::bind;
|
||||
template <typename T>
|
||||
void close_after_timeout(T & e, websocketpp::connection_hdl hdl, long timeout) {
|
||||
sleep(timeout);
|
||||
e.close(hdl,websocketpp::close::status::normal,"");
|
||||
|
||||
websocketpp::lib::error_code ec;
|
||||
e.close(hdl,websocketpp::close::status::normal,"",ec);
|
||||
BOOST_CHECK(!ec);
|
||||
}
|
||||
|
||||
void run_server(server * s, int port, bool log = false) {
|
||||
|
||||
Reference in New Issue
Block a user