diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-04-22 17:43:50 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-04-23 13:24:35 +0100 |
commit | e82d2be64bfea31d2c06245812743496038ff93f (patch) | |
tree | acb56c99978ad5f96cb928a1fb0a2779c78139f1 /tests | |
parent | 1edbd16577c337537ee833e593b7579f601328d7 (diff) | |
download | psycopg2-e82d2be64bfea31d2c06245812743496038ff93f.tar.gz |
More lenient test timeout for a slow (or busy) machine.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_notify.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_notify.py b/tests/test_notify.py index 722aecf..2af7773 100755 --- a/tests/test_notify.py +++ b/tests/test_notify.py @@ -59,9 +59,9 @@ conn.close() self.notify('foo', 1); t0 = time.time() - ready = select.select([self.conn], [], [], 2) + ready = select.select([self.conn], [], [], 5) 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(extensions.POLL_OK, self.conn.poll()) |