From 1a3c06f2d9bd86ea37789705e79e615045e3c66f Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Wed, 5 Dec 2018 20:19:21 +0900 Subject: [PATCH] Fix OsuTestCase beatmap not having a correct default beatmap --- osu.Game/Tests/Visual/OsuTestCase.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game/Tests/Visual/OsuTestCase.cs b/osu.Game/Tests/Visual/OsuTestCase.cs index 67a13bd850..80c9b2ab47 100644 --- a/osu.Game/Tests/Visual/OsuTestCase.cs +++ b/osu.Game/Tests/Visual/OsuTestCase.cs @@ -29,6 +29,9 @@ namespace osu.Game.Tests.Visual { Dependencies = new DependencyContainer(base.CreateChildDependencies(parent)); + // This is the earliest we can get OsuGameBase, which is used by the dummy working beatmap to find textures + beatmap.Default = new DummyWorkingBeatmap(Dependencies.Get()); + Dependencies.CacheAs(beatmap); Dependencies.CacheAs(beatmap);