From 08cdb95ba0cbcafc5bdea4dfa3635c548c832883 Mon Sep 17 00:00:00 2001 From: amirreza Date: Thu, 21 Nov 2024 17:46:31 +0330 Subject: [PATCH] run cluster tests in CI --- .github/workflows/ci.yml | 2 ++ tests/settings/sqlite_cluster.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be348a0..2a7eafd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,9 @@ jobs: poetry run invoke devenv chmod +x ./util/wait-for-it.sh ./util/wait-for-it.sh localhost:6379 + ./util/wait-for-it.sh localhost:16379 + poetry run pytest tests/tests_cluster/*.py --ds=tests.settings.sqlite_cluster -x poetry run pytest tests/*.py --ds=tests.settings.sqlite -x poetry run pytest tests/*.py --ds=tests.settings.sqlite_herd -x poetry run pytest tests/*.py --ds=tests.settings.sqlite_json -x diff --git a/tests/settings/sqlite_cluster.py b/tests/settings/sqlite_cluster.py index 9462fbf..6098a9f 100644 --- a/tests/settings/sqlite_cluster.py +++ b/tests/settings/sqlite_cluster.py @@ -5,7 +5,10 @@ "BACKEND": "django_valkey.cluster_cache.cache.ClusterValkeyCache", "LOCATION": ["valkey://127.0.0.1:16380", "valkey://127.0.0.1:16381"], "OPTIONS": { - "CLIENT_CLASS": "django_valkey.cluster_cache.client.DefaultClusterClient" + "CLIENT_CLASS": "django_valkey.cluster_cache.client.DefaultClusterClient", + "BASE_CLIENT_CLS_KWARGS": { + "health_check_interval": 3.0, + }, }, }, "doesnotexist": {