Wait for scheduled state changes before asserting

This commit is contained in:
Salman Ahmed 2021-01-18 19:20:19 +03:00
parent dc91cebce9
commit ddcfd854bd

View File

@ -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()));
}