Add a small sleep when trying to predict X-Timestamp
The existing test works fine if you're running the tests on an all-in-one, but is pretty brittle if you aren't running them on the one and only proxy-server they're hitting. Add 0.1s sleep to allow *some* clock slippage between client and server. Change-Id: Iacd08e9f703d08d0092b5e8eb53fe287ba1d1596
This commit is contained in:
parent
8dcef64975
commit
cd11289ba1
@ -330,8 +330,10 @@ class TestObject(unittest2.TestCase):
|
||||
'Content-Length': '0'})
|
||||
return check_response(conn)
|
||||
ts_before = time.time()
|
||||
time.sleep(0.05)
|
||||
resp = retry(put)
|
||||
body = resp.read()
|
||||
time.sleep(0.05)
|
||||
ts_after = time.time()
|
||||
if resp.status == 400:
|
||||
# shunt_inbound_x_timestamp must be false
|
||||
@ -361,8 +363,10 @@ class TestObject(unittest2.TestCase):
|
||||
'Content-Length': '0'})
|
||||
return check_response(conn)
|
||||
ts_before = time.time()
|
||||
time.sleep(0.05)
|
||||
resp = retry(put)
|
||||
body = resp.read()
|
||||
time.sleep(0.05)
|
||||
ts_after = time.time()
|
||||
if resp.status == 400:
|
||||
# shunt_inbound_x_timestamp must be false
|
||||
|
Loading…
x
Reference in New Issue
Block a user