From cb220115de7674ed9d2a1321e42b274fb6e1883a Mon Sep 17 00:00:00 2001 From: Gang Li Date: Wed, 16 Jul 2025 15:08:47 +0800 Subject: [PATCH] Chore: some little adjustment * Increase the waiting time for CF invlidation check * Upgrade pytest to 8.4.1 --- charon/cache.py | 4 ++-- pyproject.toml | 2 +- tests/requirements.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charon/cache.py b/charon/cache.py index 5b8d1227..3d216b60 100644 --- a/charon/cache.py +++ b/charon/cache.py @@ -86,8 +86,8 @@ def invalidate_paths( The default value is 3000 which is the maximum number in official doc: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#InvalidationLimits """ - INPRO_W_SECS = 5 - NEXT_W_SECS = 1 + INPRO_W_SECS = 10 + NEXT_W_SECS = 2 real_paths = [paths] # Split paths into batches by batch_size if batch_size: diff --git a/pyproject.toml b/pyproject.toml index b667868d..9061673b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ dev = [ test = [ "flexmock>=0.10.6", "responses>=0.9.0", - "pytest<=7.1.3", + "pytest<=8.4.1", "pytest-cov", "pytest-html", "requests-mock", diff --git a/tests/requirements.txt b/tests/requirements.txt index 408de626..477e546b 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,6 +1,6 @@ flexmock>=0.10.6 responses>=0.9.0 -pytest<=7.1.3 +pytest<=8.4.1 pytest-cov pytest-html requests-mock