From 2c3128d9ba90f375aed0970b18086d7d221c24c4 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 12 Feb 2016 18:48:29 -0500 Subject: [PATCH] Ignore error on socket shutdown --- src/ripple/server/tests/Server_test.cpp | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/src/ripple/server/tests/Server_test.cpp b/src/ripple/server/tests/Server_test.cpp index 10375337eb..17454f9c03 100644 --- a/src/ripple/server/tests/Server_test.cpp +++ b/src/ripple/server/tests/Server_test.cpp @@ -233,15 +233,8 @@ public: if (! expect_read (s, "Hello, world!\n")) return ; - try - { - s.shutdown (socket::shutdown_both); - pass(); - } - catch (std::exception const& e) - { - fail (e.what()); - } + boost::system::error_code ec; + s.shutdown(socket::shutdown_both, ec); std::this_thread::sleep_for (std::chrono::seconds (1)); } @@ -274,15 +267,8 @@ public: if (! expect_read (s, "Hello, world!\n")) return ; - try - { - s.shutdown (socket::shutdown_both); - pass(); - } - catch (std::exception const& e) - { - fail (e.what()); - } + boost::system::error_code ec; + s.shutdown(socket::shutdown_both, ec); } void basicTests()