From: Serhiy Storchaka Date: Fri, 17 Sep 2021 13:20:15 +0000 (+0300) Subject: bpo-45212: Add a comment for time.sleep() in tests (GH-28414) X-Git-Tag: v3.11.0a1~141 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54a1760cde7bb01e5574734c389c0746762218fd;p=thirdparty%2FPython%2Fcpython.git bpo-45212: Add a comment for time.sleep() in tests (GH-28414) Co-authored-by: Victor Stinner --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 2d7cdb492b84..d064c6705a48 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