Skip to content

Commit 2725622

Browse files
committed
Use LocMemCache for AutomatedTests instead of Redis
- Fixes test flakiness when running them in parallel
1 parent 0860927 commit 2725622

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tilavarauspalvelu/settings.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,12 @@ def SEARCH_SETTINGS(cls):
815815

816816
# --- Misc settings ----------------------------------------------------------------------------------------------
817817

818+
CACHES = {
819+
"default": {
820+
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
821+
}
822+
}
823+
818824
TPREK_UNIT_URL = "https://fake.test.tprek.com"
819825
ICAL_HASH_SECRET = "qhoew923uqqwee" # noqa: S105 # nosec # NOSONAR
820826

0 commit comments

Comments
 (0)