Skip to content

Commit

Permalink
Merge pull request #11776 from nanaya/test-tag-cache
Browse files Browse the repository at this point in the history
Fix tag controller tests
  • Loading branch information
notbakaneko authored Jan 9, 2025
2 parents 52ea0cf + cdf9c22 commit 88dc4d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 88dc4d2

Please sign in to comment.