diff options
Diffstat (limited to 'libpqpp/unittests')
-rw-r--r-- | libpqpp/unittests/testpq.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpqpp/unittests/testpq.cpp b/libpqpp/unittests/testpq.cpp index b321075..2ff3235 100644 --- a/libpqpp/unittests/testpq.cpp +++ b/libpqpp/unittests/testpq.cpp @@ -181,6 +181,7 @@ BOOST_AUTO_TEST_CASE( reconnect ) kil->bindParamI(0, pid1); kil->execute(); delete kil; + usleep(5000); ro->ping(); int pid2 = PQbackendPID(pqconn->conn); BOOST_REQUIRE(pid2); @@ -202,6 +203,7 @@ BOOST_AUTO_TEST_CASE( reconnectInTx ) kil->bindParamI(0, pid1); kil->execute(); delete kil; + usleep(5000); BOOST_REQUIRE_THROW(ro->ping(), PQ::ConnectionError); delete ro; delete rok; |