Fix failing test due to missing ruleset store

This commit is contained in:
Dean Herbert 2024-03-29 17:32:20 +08:00
parent 233b9eb172
commit df4a28db91
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@
using osu.Game.Beatmaps;
using osu.Game.Database;
using osu.Game.IO;
using osu.Game.Rulesets;
using osu.Game.Tests.Resources;
namespace osu.Game.Tests.Database
@ -77,6 +78,7 @@ public void TestStableDateAddedApplied()
{
using (HeadlessGameHost host = new CleanRunHeadlessGameHost())
using (var tmpStorage = new TemporaryNativeStorage("stable-songs-folder"))
using (new RealmRulesetStore(realm, storage))
{
var stableStorage = new StableStorage(tmpStorage.GetFullPath(""), host);
var songsStorage = stableStorage.GetStorageForDirectory(StableStorage.STABLE_DEFAULT_SONGS_PATH);