diff --git a/test/src/unit-cbor.cpp b/test/src/unit-cbor.cpp index b808a8839a688bb2f2ac5291e8016e2e4276ab26..5e088be4c4033386ed5bd59b4dc2edb664daa2c6 100644 --- a/test/src/unit-cbor.cpp +++ b/test/src/unit-cbor.cpp @@ -1272,7 +1272,7 @@ TEST_CASE("CBOR") SECTION("strict mode") { - CHECK_THROWS_AS(json::from_cbor(vec), json::parse_error); + CHECK_THROWS_AS(json::from_cbor(vec), json::parse_error&); CHECK_THROWS_WITH(json::from_cbor(vec), "[json.exception.parse_error.110] parse error at 2: expected end of input"); } diff --git a/test/src/unit-msgpack.cpp b/test/src/unit-msgpack.cpp index f0f59fa4166742a38ba1df7b078ecd4fa8a46884..374349931b3619e578631f1a2e7230d1b2d311ec 100644 --- a/test/src/unit-msgpack.cpp +++ b/test/src/unit-msgpack.cpp @@ -1113,7 +1113,7 @@ TEST_CASE("MessagePack") SECTION("strict mode") { - CHECK_THROWS_AS(json::from_msgpack(vec), json::parse_error); + CHECK_THROWS_AS(json::from_msgpack(vec), json::parse_error&); CHECK_THROWS_WITH(json::from_msgpack(vec), "[json.exception.parse_error.110] parse error at 2: expected end of input"); }