Fix potential test fail case

This commit is contained in:
Dean Herbert 2019-09-25 14:28:35 +09:00
parent bb1289e83c
commit 2089f6fc42

View File

@ -381,14 +381,10 @@ namespace osu.Game.Tests.Visual.SongSelect
[Test]
public void TestHiding()
{
BeatmapSetInfo hidingSet = null;
BeatmapSetInfo hidingSet = createTestBeatmapSet(1);
hidingSet.Beatmaps[1].Hidden = true;
AddStep("Add set with diff 2 hidden", () =>
{
hidingSet = createTestBeatmapSet(1);
hidingSet.Beatmaps[1].Hidden = true;
carousel.UpdateBeatmapSet(hidingSet);
});
loadBeatmaps(new List<BeatmapSetInfo> { hidingSet });
setSelected(1, 1);