diff --git a/test/transport/integration.cpp b/test/transport/integration.cpp index 1c12c87339..5e163d5bf1 100644 --- a/test/transport/integration.cpp +++ b/test/transport/integration.cpp @@ -87,7 +87,10 @@ using websocketpp::lib::bind; template 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) {