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 | 6fc6e9e13214641d33c378b7f4c4af954ac67838 (patch) | |
tree | a853b479bdd3240821bffcecc82a10ffeda50c2c /libpqpp/unittests | |
parent | Implement getting PQ command option settings from map (diff) | |
download | libdbpp-postgresql-6fc6e9e13214641d33c378b7f4c4af954ac67838.tar.bz2 libdbpp-postgresql-6fc6e9e13214641d33c378b7f4c4af954ac67838.tar.xz libdbpp-postgresql-6fc6e9e13214641d33c378b7f4c4af954ac67838.zip |
Relax message check as it can vary depending on server configuration
Diffstat (limited to 'libpqpp/unittests')
-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\"")); } } |