diff options
-rw-r--r-- | libdbpp/unittests/testMock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdbpp/unittests/testMock.cpp b/libdbpp/unittests/testMock.cpp index 9a3eba6..7b71312 100644 --- a/libdbpp/unittests/testMock.cpp +++ b/libdbpp/unittests/testMock.cpp @@ -22,7 +22,8 @@ BOOST_AUTO_TEST_CASE( mockFactory ) BOOST_REQUIRE(m); auto c = m->openConnection(); BOOST_REQUIRE(c); - BOOST_REQUIRE_EQUAL(typeid(MockDb), typeid(*c)); + auto & cr = *c; + BOOST_REQUIRE_EQUAL(typeid(MockDb), typeid(cr)); } BOOST_AUTO_TEST_CASE( missingMock ) |