From b355df6d140c3a97be310b2f791fdaa9958d80c8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 8 Jan 2017 20:15:46 +0000 Subject: Relax message check as it can vary depending on server configuration --- libpqpp/unittests/testpq.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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\"")); } } -- cgit v1.2.3