Make test_multiphase_put_drains_extra_commit_junk_disconnect less flakey

Change-Id: I82503b13e4541196ad056e861221e9429c7f2c1c
This commit is contained in:
Tim Burke 2019-02-22 14:23:15 -08:00
parent 6c30796a9f
commit 5409c4f347

View File

@ -8159,7 +8159,9 @@ class TestObjectServer(unittest.TestCase):
conn.sock.fd._sock.close()
else:
conn.sock.fd._real_close()
sleep(0)
# We've seen a bunch of failures here -- try waiting some non-zero
# amount of time.
sleep(0.01)
# and make sure it demonstrates the client disconnect
log_lines = self.logger.get_lines_for_level('info')