summaryrefslogtreecommitdiff
path: root/tests/testutils.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2019-03-06 01:43:06 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2019-03-16 20:05:40 +0000
commitd61c902230a4b1449b365c95c9307fdd886a6110 (patch)
treebe70b593a6d7438e0e0d617f13cd5caec50f8151 /tests/testutils.py
parentb5c7c93092c2031fab756a2682a33f8ae75e1dc5 (diff)
downloadpsycopg2-d61c902230a4b1449b365c95c9307fdd886a6110.tar.gz
Shorter timeout in the async tests select
Diffstat (limited to 'tests/testutils.py')
-rw-r--r--tests/testutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testutils.py b/tests/testutils.py
index 843bfdf..405da18 100644
--- a/tests/testutils.py
+++ b/tests/testutils.py
@@ -175,9 +175,9 @@ class ConnectingTestCase(unittest.TestCase):
if state == psycopg2.extensions.POLL_OK:
break
elif state == psycopg2.extensions.POLL_READ:
- select.select([pollable], [], [], 10)
+ select.select([pollable], [], [], 1)
elif state == psycopg2.extensions.POLL_WRITE:
- select.select([], [pollable], [], 10)
+ select.select([], [pollable], [], 1)
else:
raise Exception("Unexpected result from poll: %r", state)