Slower timeout for a test that sometimes fail

At least it should fail with an error after 2 seconds, not waiting for
Travis timeout of 10 minutes.
This commit is contained in:
Daniele Varrazzo 2017-02-05 12:04:55 +01:00
parent 30a833f57a
commit c6af16c3ae

View File

@ -92,7 +92,7 @@ class CancelTests(ConnectingTestCase):
self.assertRaises(psycopg2.OperationalError, async_conn.cancel)
extras.wait_select(async_conn)
cur = async_conn.cursor()
cur.execute("select pg_sleep(10000)")
cur.execute("select pg_sleep(2)")
self.assertTrue(async_conn.isexecuting())
async_conn.cancel()
self.assertRaises(psycopg2.extensions.QueryCanceledError,