diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-02-20 19:33:22 +0000 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-02-20 19:33:22 +0000 |
| commit | a97e2a842df6f81b544e23b0f9db78cd07c86e8d (patch) | |
| tree | 8991c78be4957c24fa8fb05902c04ea779fe786b /tests/test_notify.py | |
| parent | d74f7773398789c379cd6d42f6b8e3c2a63b9282 (diff) | |
| download | psycopg2-a97e2a842df6f81b544e23b0f9db78cd07c86e8d.tar.gz | |
Tweaks to test timing to avoid errors on test VMs
Diffstat (limited to 'tests/test_notify.py')
| -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] |
