summaryrefslogtreecommitdiff
path: root/libpqpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp')
-rw-r--r--libpqpp/unittests/testpq.cpp2
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\""));
}
}