Skip to content

Commit

Permalink
Fix test failures due to Content override being applied in two plac…
Browse files Browse the repository at this point in the history
…es weirdly
  • Loading branch information
bdach committed Jul 24, 2023
1 parent 3ccd0ca commit 09ee500
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions osu.Game.Tournament.Tests/TournamentScreenTestScene.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osuTK;
Expand All @@ -15,5 +16,11 @@ public abstract partial class TournamentScreenTestScene : TournamentTestScene
Scale = new Vector2(1920 / (float)(1920 + TournamentSceneManager.CONTROL_AREA_WIDTH)),
RelativeSizeAxes = Axes.Both
};

[BackgroundDependencyLoader]
private void load()
{
base.Content.Add(Content);
}
}
}
2 changes: 0 additions & 2 deletions osu.Game.Tournament.Tests/TournamentTestScene.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ private void load(TournamentStorage storage)

Ruleset.BindTo(Ladder.Ruleset);
Dependencies.CacheAs(new StableInfo(storage));

base.Content.Add(Content);
}

[SetUpSteps]
Expand Down

0 comments on commit 09ee500

Please sign in to comment.