From cdf9c223d6dcedc6ee07cf43bbb9fecfa8c599a5 Mon Sep 17 00:00:00 2001 From: nanaya Date: Wed, 8 Jan 2025 22:15:58 +0900 Subject: [PATCH] Fix tag controller tests --- tests/TestCase.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/TestCase.php b/tests/TestCase.php index 03c9ada27fe..3617fbd4993 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -135,6 +135,11 @@ protected function setUp(): void // change config setting because we need more than 1 for the tests. config_set('osu.oauth.max_user_clients', 100); + // Disable caching for the BeatmapTagsController and TagsController tests + // because otherwise multiple run of the tests may use stale cache data. + config_set('osu.tags.beatmap_tags_cache_duration', 0); + config_set('osu.tags.tags_cache_duration', 0); + // Force connections to reset even if transactional tests were not used. // Should fix tests going wonky when different queue drivers are used, or anything that // breaks assumptions of object destructor timing.