mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 19:22:56 +08:00
Adjust testcase to avoid random failures
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user