diff options
| -rwxr-xr-x | tests/test_notify.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_notify.py b/tests/test_notify.py index ea6b7e0..5b1b112 100755 --- a/tests/test_notify.py +++ b/tests/test_notify.py @@ -129,7 +129,7 @@ conn.close() self.autocommit(self.conn) self.listen('foo') self.notify('foo').communicate() - time.sleep(0.1) + time.sleep(0.5) self.conn.poll() notify = self.conn.notifies[0] self.assert_(isinstance(notify, psycopg2.extensions.Notify)) @@ -138,7 +138,7 @@ conn.close() self.autocommit(self.conn) self.listen('foo') pid = int(self.notify('foo').communicate()[0]) - time.sleep(0.1) + time.sleep(0.5) self.conn.poll() self.assertEqual(1, len(self.conn.notifies)) notify = self.conn.notifies[0] @@ -153,7 +153,7 @@ conn.close() self.autocommit(self.conn) self.listen('foo') pid = int(self.notify('foo', payload="Hello, world!").communicate()[0]) - time.sleep(0.1) + time.sleep(0.5) self.conn.poll() self.assertEqual(1, len(self.conn.notifies)) notify = self.conn.notifies[0] |
