Skip to content

Commit

Permalink
run cluster tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
amirreza8002 committed Nov 21, 2024
1 parent 8d6d6de commit 08cdb95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion tests/settings/sqlite_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 08cdb95

Please sign in to comment.