From 5409c4f347ee0f600249794844d61635136fb075 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Fri, 22 Feb 2019 14:23:15 -0800 Subject: [PATCH] Make test_multiphase_put_drains_extra_commit_junk_disconnect less flakey Change-Id: I82503b13e4541196ad056e861221e9429c7f2c1c --- test/unit/obj/test_server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/obj/test_server.py b/test/unit/obj/test_server.py index b5f454b778..98fb607df7 100644 --- a/test/unit/obj/test_server.py +++ b/test/unit/obj/test_server.py @@ -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')