From 9dc68111352716cb242d12f49c3a5d232299a0e2 Mon Sep 17 00:00:00 2001 From: Jason Erickson Date: Fri, 18 Feb 2011 11:52:17 -0700 Subject: [PATCH] Again, increase timeout on concurrent_exec tests Truly increase the sleep timeout to 4 seconds and the check to 7. Previous commit message indicated that, but reality was different. --- tests/test_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_connection.py b/tests/test_connection.py index 219c0938..ef63470f 100755 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -119,7 +119,7 @@ class ConnectionTests(unittest.TestCase): def slave(): cnn = psycopg2.connect(dsn) cur = cnn.cursor() - cur.execute("select pg_sleep(3)") + cur.execute("select pg_sleep(4)") cur.close() cnn.close() @@ -130,7 +130,7 @@ class ConnectionTests(unittest.TestCase): t2.start() t1.join() t2.join() - self.assert_(time.time() - t0 < 5, + self.assert_(time.time() - t0 < 7, "something broken in concurrency") def test_encoding_name(self):