1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-17 19:44:22 +08:00

Wait for scheduled state changes before asserting

This commit is contained in:
Salman Ahmed
2021-01-18 19:20:19 +03:00
Unverified
parent dc91cebce9
commit ddcfd854bd
@@ -130,6 +130,8 @@ namespace osu.Game.Tests.Online
private void addAvailabilityCheckStep(string description, Func<BeatmapAvailability> expected)
{
// In DownloadTrackingComposite, state changes are scheduled one frame later, wait one step.
AddWaitStep("wait for potential change", 1);
AddAssert(description, () => tracker.Availability.Value.Equals(expected.Invoke()));
}