mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 03:25:11 +08:00
Instantiate immediately, rather than waiting for instantiation
This commit is contained in:
parent
878079d3d7
commit
8e923a5d8f
@ -184,10 +184,10 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
AddStep("load slow dummy beatmap", () =>
|
||||
{
|
||||
prepareBeatmap();
|
||||
LoadScreen(loader = new TestPlayerLoader(() => slowPlayer = new SlowLoadPlayer(false, false)));
|
||||
slowPlayer = new SlowLoadPlayer(false, false);
|
||||
LoadScreen(loader = new TestPlayerLoader(() => slowPlayer));
|
||||
});
|
||||
|
||||
AddUntilStep("wait for slow player to be instantiated", () => slowPlayer != null);
|
||||
AddStep("schedule slow load", () => Scheduler.AddDelayed(() => slowPlayer.AllowLoad.Set(), 5000));
|
||||
|
||||
AddUntilStep("wait for player to be current", () => slowPlayer.IsCurrentScreen());
|
||||
|
Loading…
Reference in New Issue
Block a user