Fix bindable lease failure in editor beatmap creation tests

This commit is contained in:
Dean Herbert
2021-05-31 14:24:46 +09:00
parent acd9ed40d9
commit 5925beaf21
2 changed files with 12 additions and 3 deletions

View File

@ -29,8 +29,6 @@ namespace osu.Game.Tests.Visual.Editing
public override void SetUpSteps()
{
AddStep("set dummy", () => Beatmap.Value = new DummyWorkingBeatmap(Audio, null));
base.SetUpSteps();
// if we save a beatmap with a hash collision, things fall over.
@ -38,6 +36,12 @@ namespace osu.Game.Tests.Visual.Editing
AddStep("make new beatmap unique", () => EditorBeatmap.Metadata.Title = Guid.NewGuid().ToString());
}
protected override void LoadEditor()
{
Beatmap.Value = new DummyWorkingBeatmap(Audio, null);
base.LoadEditor();
}
[Test]
public void TestCreateNewBeatmap()
{