1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 16:10:16 +08:00

Adjust testcase to avoid random failures

This commit is contained in:
smoogipoo
2019-05-08 23:38:57 +09:00
Unverified
parent ffea0338fb
commit 9b279f324f
@@ -107,7 +107,7 @@ namespace osu.Game.Tests.Visual.UserInterface
AutoSizeAxes = Axes.Y,
Direction = FillDirection.Vertical,
Spacing = new Vector2(10),
Padding = new MarginPadding { Bottom = 250 }
Padding = new MarginPadding { Bottom = 550 }
}
};
@@ -136,7 +136,7 @@ namespace osu.Game.Tests.Visual.UserInterface
AddUntilStep("some loaded", () => (initialLoadCount = loadedBackgrounds.Count()) > 0);
AddStep("scroll to bottom", () => scrollContainer.ScrollToEnd());
AddUntilStep("some unloaded", () => loadedBackgrounds.Count() < initialLoadCount);
AddUntilStep("all unloaded", () => !loadedBackgrounds.Any());
}
private class TestUpdateableBeatmapBackgroundSprite : UpdateableBeatmapBackgroundSprite