mirror of
https://github.com/ppy/osu.git
synced 2026-06-03 14:24:18 +08:00
Fix song select filtering test scene reading from local database
This commit is contained in:
@@ -36,9 +36,7 @@ namespace osu.Game.Tests.Visual.SongSelectV2
|
||||
public partial class TestSceneSongSelectFiltering : ScreenTestScene
|
||||
{
|
||||
private BeatmapManager manager = null!;
|
||||
|
||||
[Resolved]
|
||||
private RulesetStore rulesets { get; set; } = null!;
|
||||
private RealmRulesetStore rulesets = null!;
|
||||
|
||||
private OsuConfigManager config = null!;
|
||||
|
||||
@@ -93,6 +91,8 @@ namespace osu.Game.Tests.Visual.SongSelectV2
|
||||
|
||||
// These DI caches are required to ensure for interactive runs this test scene doesn't nuke all user beatmaps in the local install.
|
||||
// At a point we have isolated interactive test runs enough, this can likely be removed.
|
||||
Dependencies.Cache(rulesets = new RealmRulesetStore(Realm));
|
||||
Dependencies.Cache(Realm);
|
||||
Dependencies.Cache(manager = new BeatmapManager(LocalStorage, Realm, null, Audio, Resources, host, Beatmap.Default));
|
||||
Dependencies.CacheAs<BeatmapStore>(beatmapStore = new RealmDetachedBeatmapStore());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user