bpo-45212: Add a comment for time.sleep() in tests (GH-28414)

Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
Serhiy Storchaka 2021-09-17 16:20:15 +03:00 committed by GitHub
parent 6b41355128
commit 54a1760cde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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