From d61c902230a4b1449b365c95c9307fdd886a6110 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 6 Mar 2019 01:43:06 +0000 Subject: [PATCH] Shorter timeout in the async tests select --- tests/testutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testutils.py b/tests/testutils.py index 843bfdfb..405da18a 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)