Reduce akamai purger interval in integration tests (#4277)

and reduce the verify_akamai_purge deadline/sleep to match the much smaller interval.
This commit is contained in:
Roland Bracewell Shoemaker 2019-06-20 13:31:44 -07:00 committed by Daniel McCarney
parent acc44498d1
commit 0a16b5f57d
3 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{
"akamaiPurger": {
"debugAddr": ":9666",
"purgeInterval": "1s",
"purgeInterval": "1ms",
"baseURL": "http://localhost:6789",
"clientToken": "its-a-token",
"clientSecret": "its-a-secret",

View File

@ -1,7 +1,7 @@
{
"akamaiPurger": {
"debugAddr": ":9666",
"purgeInterval": "10s",
"purgeInterval": "1ms",
"baseURL": "http://localhost:6789",
"clientToken": "its-a-token",
"clientSecret": "its-a-secret",

View File

@ -129,9 +129,9 @@ def reset_akamai_purges():
requests.post("http://localhost:6789/debug/reset-purges")
def verify_akamai_purge():
deadline = time.time() + 10
deadline = time.time() + 0.25
while True:
time.sleep(0.25)
time.sleep(0.05)
if time.time() > deadline:
raise Exception("Timed out waiting for Akamai purge")
response = requests.get("http://localhost:6789/debug/get-purges")