]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45212: Add a comment for time.sleep() in tests (GH-28414)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 17 Sep 2021 13:20:15 +0000 (16:20 +0300)
committerGitHub <noreply@github.com>
Fri, 17 Sep 2021 13:20:15 +0000 (16:20 +0300)
Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_socket.py

index 2d7cdb492b84bdff901a984b802184bed23ac0ae..d064c6705a484ff295ba9c49db093eeb2bb2de60 100755 (executable)
@@ -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