mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 19:47:33 +09:00
Wait for scheduled state changes before asserting
This commit is contained in:
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()));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user