diff options
Diffstat (limited to 'Lib/test/test_asyncore.py')
-rw-r--r-- | Lib/test/test_asyncore.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py index 1e276ec..dc2f716 100644 --- a/Lib/test/test_asyncore.py +++ b/Lib/test/test_asyncore.py @@ -781,8 +781,9 @@ class BaseTestAPI: self.skipTest("test specific to AF_INET and AF_INET6") server = BaseServer(self.family, self.addr) + # run the thread 500 ms: the socket should be connected in 200 ms t = threading.Thread(target=lambda: asyncore.loop(timeout=0.1, - count=500)) + count=5)) t.start() try: with socket.socket(self.family, socket.SOCK_STREAM) as s: |