From 0a16b5f57d7c1a3cdf4d1453ac544a42eab7a251 Mon Sep 17 00:00:00 2001 From: Roland Bracewell Shoemaker Date: Thu, 20 Jun 2019 13:31:44 -0700 Subject: [PATCH] Reduce akamai purger interval in integration tests (#4277) and reduce the verify_akamai_purge deadline/sleep to match the much smaller interval. --- test/config-next/akamai-purger.json | 2 +- test/config/akamai-purger.json | 2 +- test/helpers.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/config-next/akamai-purger.json b/test/config-next/akamai-purger.json index e93b04e71..235023b80 100644 --- a/test/config-next/akamai-purger.json +++ b/test/config-next/akamai-purger.json @@ -1,7 +1,7 @@ { "akamaiPurger": { "debugAddr": ":9666", - "purgeInterval": "1s", + "purgeInterval": "1ms", "baseURL": "http://localhost:6789", "clientToken": "its-a-token", "clientSecret": "its-a-secret", diff --git a/test/config/akamai-purger.json b/test/config/akamai-purger.json index f2035d91f..235023b80 100644 --- a/test/config/akamai-purger.json +++ b/test/config/akamai-purger.json @@ -1,7 +1,7 @@ { "akamaiPurger": { "debugAddr": ":9666", - "purgeInterval": "10s", + "purgeInterval": "1ms", "baseURL": "http://localhost:6789", "clientToken": "its-a-token", "clientSecret": "its-a-secret", diff --git a/test/helpers.py b/test/helpers.py index ccde1211d..2e2fe812a 100644 --- a/test/helpers.py +++ b/test/helpers.py @@ -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")