mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 17:34:08 +03:00
More lenient test timeout for a slow (or busy) machine.
This commit is contained in:
parent
1edbd16577
commit
e82d2be64b
|
@ -59,9 +59,9 @@ conn.close()
|
||||||
self.notify('foo', 1);
|
self.notify('foo', 1);
|
||||||
|
|
||||||
t0 = time.time()
|
t0 = time.time()
|
||||||
ready = select.select([self.conn], [], [], 2)
|
ready = select.select([self.conn], [], [], 5)
|
||||||
t1 = time.time()
|
t1 = time.time()
|
||||||
self.assert_(0.99 < t1 - t0 < 1.2, t1 - t0)
|
self.assert_(0.99 < t1 - t0 < 4, t1 - t0)
|
||||||
|
|
||||||
self.assertEqual(0, len(self.conn.notifies))
|
self.assertEqual(0, len(self.conn.notifies))
|
||||||
self.assertEqual(extensions.POLL_OK, self.conn.poll())
|
self.assertEqual(extensions.POLL_OK, self.conn.poll())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user