From 54a1760cde7bb01e5574734c389c0746762218fd Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 17 Sep 2021 16:20:15 +0300 Subject: bpo-45212: Add a comment for time.sleep() in tests (GH-28414) Co-authored-by: Victor Stinner --- Lib/test/test_socket.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 2d7cdb4..d064c67 100755 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -6207,6 +6207,7 @@ class SendfileUsingSendTest(ThreadedTCPSocketTest): def testWithTimeoutTriggeredSend(self): conn = self.accept_conn() conn.recv(88192) + # bpo-45212: the wait here needs to be longer than the client-side timeout (0.01s) time.sleep(1) # errors -- cgit v0.12