fix CHECK_THROWS_AS usage

"Note that the exception type is extended with const& and you should not include it yourself."

according to https://github.com/catchorg/Catch2/blob/devel/docs/assertions.md#exceptions
This commit is contained in:
Alberto Invernizzi
2021-01-02 10:36:02 +01:00
parent b6420aa22f
commit eddeaf44ca
7 changed files with 32 additions and 32 deletions

View File

@@ -115,7 +115,7 @@ TEST_CASE("send_multipart test", "[send_multipart]")
SECTION("send with invalid socket") {
std::vector<zmq::message_t> msgs(1);
CHECK_THROWS_AS(zmq::send_multipart(zmq::socket_ref(), msgs),
const zmq::error_t &);
zmq::error_t);
}
}
#endif