Fix CI failures related to akamai-test-srv (#6815)

Fixes a CI problem introduced by
https://github.com/letsencrypt/boulder/pull/6758 where we could send two
purge requests which caused sporadic CI failures due to an infinite
loop.

Fixes https://github.com/letsencrypt/boulder/issues/6806
This commit is contained in:
Phil Porada 2023-04-13 12:56:30 -04:00 committed by GitHub
parent 45329c9472
commit 56a11f0896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ def verify_akamai_purge():
raise(Exception("Timed out waiting for Akamai purge"))
response = requests.get("http://localhost:6789/debug/get-purges")
purgeData = response.json()
if len(purgeData["V3"]) != 1:
if len(purgeData["V3"]) == 0:
continue
break
reset_akamai_purges()