tests: delete BOOST_CHECK_NO_THROW in ProtocolFactory test suites
This makes exception message appear in testing logs, which
simplifies debugging.
refs #3904
Change-Id: I7d1a36c1c66d885a03e6a6d283e2907364f7f31a
diff --git a/tests/daemon/face/websocket-factory.t.cpp b/tests/daemon/face/websocket-factory.t.cpp
index d4a6d5e..78d2321 100644
--- a/tests/daemon/face/websocket-factory.t.cpp
+++ b/tests/daemon/face/websocket-factory.t.cpp
@@ -56,8 +56,8 @@
}
)CONFIG";
- BOOST_CHECK_NO_THROW(parseConfig(CONFIG, true));
- BOOST_CHECK_NO_THROW(parseConfig(CONFIG, false));
+ parseConfig(CONFIG, true);
+ parseConfig(CONFIG, false);
auto& factory = this->getFactoryById<WebSocketFactory>("websocket");
checkChannelListEqual(factory, {"ws://[::]:9696"});
@@ -78,8 +78,8 @@
}
)CONFIG";
- BOOST_CHECK_NO_THROW(parseConfig(CONFIG, true));
- BOOST_CHECK_NO_THROW(parseConfig(CONFIG, false));
+ parseConfig(CONFIG, true);
+ parseConfig(CONFIG, false);
auto& factory = this->getFactoryById<WebSocketFactory>("websocket");
checkChannelListEqual(factory, {"ws://0.0.0.0:9696"});
@@ -154,7 +154,7 @@
}
)CONFIG";
- BOOST_CHECK_NO_THROW(parseConfig(CONFIG1, false));
+ parseConfig(CONFIG1, false);
auto& factory = this->getFactoryById<WebSocketFactory>("websocket");
checkChannelListEqual(factory, {"ws://[::]:9001"});
@@ -168,7 +168,7 @@
}
)CONFIG";
- BOOST_CHECK_NO_THROW(parseConfig(CONFIG2, false));
+ parseConfig(CONFIG2, false);
checkChannelListEqual(factory, {"ws://[::]:9001", "ws://[::]:9002"});
}