Change test to allow for potentially single-frame delayed events firing

This commit is contained in:
Dean Herbert 2021-10-27 23:54:02 +09:00
parent 746d6a4c16
commit 347f41f367

View File

@ -128,7 +128,7 @@ namespace osu.Game.Tests.Online
private void addAvailabilityCheckStep(string description, Func<BeatmapAvailability> expected) private void addAvailabilityCheckStep(string description, Func<BeatmapAvailability> expected)
{ {
AddAssert(description, () => availabilityTracker.Availability.Value.Equals(expected.Invoke())); AddUntilStep(description, () => availabilityTracker.Availability.Value.Equals(expected.Invoke()));
} }
private static BeatmapInfo getTestBeatmapInfo(string archiveFile) private static BeatmapInfo getTestBeatmapInfo(string archiveFile)