From e82d2be64bfea31d2c06245812743496038ff93f Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 22 Apr 2010 17:43:50 +0100 Subject: [PATCH] More lenient test timeout for a slow (or busy) machine. --- tests/test_notify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_notify.py b/tests/test_notify.py index 722aecf5..2af77736 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())