Merge "Add a small sleep when trying to predict X-Timestamp"

This commit is contained in:
Zuul 2018-01-25 19:26:53 +00:00 committed by Gerrit Code Review
commit 6d2503652b

View File

@ -329,8 +329,10 @@ class TestObject(unittest2.TestCase):
'Content-Length': '0'}) 'Content-Length': '0'})
return check_response(conn) return check_response(conn)
ts_before = time.time() ts_before = time.time()
time.sleep(0.05)
resp = retry(put) resp = retry(put)
body = resp.read() body = resp.read()
time.sleep(0.05)
ts_after = time.time() ts_after = time.time()
if resp.status == 400: if resp.status == 400:
# shunt_inbound_x_timestamp must be false # shunt_inbound_x_timestamp must be false
@ -360,8 +362,10 @@ class TestObject(unittest2.TestCase):
'Content-Length': '0'}) 'Content-Length': '0'})
return check_response(conn) return check_response(conn)
ts_before = time.time() ts_before = time.time()
time.sleep(0.05)
resp = retry(put) resp = retry(put)
body = resp.read() body = resp.read()
time.sleep(0.05)
ts_after = time.time() ts_after = time.time()
if resp.status == 400: if resp.status == 400:
# shunt_inbound_x_timestamp must be false # shunt_inbound_x_timestamp must be false