diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-08 20:15:46 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-08 20:48:35 +0000 |
commit | b355df6d140c3a97be310b2f791fdaa9958d80c8 (patch) | |
tree | f8af1fdf16f368e59b6b76e0ea65a1f46c14a1c5 | |
parent | Implement getting PQ command option settings from map (diff) | |
download | libdbpp-postgresql-b355df6d140c3a97be310b2f791fdaa9958d80c8.tar.bz2 libdbpp-postgresql-b355df6d140c3a97be310b2f791fdaa9958d80c8.tar.xz libdbpp-postgresql-b355df6d140c3a97be310b2f791fdaa9958d80c8.zip |
Relax message check as it can vary depending on server configurationlibdbpp-postgresql-1.1.2
-rw-r--r-- | libpqpp/unittests/testpq.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/unittests/testpq.cpp b/libpqpp/unittests/testpq.cpp index 2944676..76d896f 100644 --- a/libpqpp/unittests/testpq.cpp +++ b/libpqpp/unittests/testpq.cpp @@ -392,7 +392,7 @@ BOOST_AUTO_TEST_CASE( connfail ) DB::ConnectionFactory::createNew("postgresql", "host=localhost user=no"); } catch (const DB::ConnectionError & e) { - BOOST_REQUIRE_EQUAL(e.what(), "FATAL: role \"no\" does not exist\n"); + BOOST_REQUIRE(std::string(e.what()).find("\"no\"")); } } |