mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:32:55 +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", () =>
|
AddStep("load slow dummy beatmap", () =>
|
||||||
{
|
{
|
||||||
prepareBeatmap();
|
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));
|
AddStep("schedule slow load", () => Scheduler.AddDelayed(() => slowPlayer.AllowLoad.Set(), 5000));
|
||||||
|
|
||||||
AddUntilStep("wait for player to be current", () => slowPlayer.IsCurrentScreen());
|
AddUntilStep("wait for player to be current", () => slowPlayer.IsCurrentScreen());
|
||||||
|
Loading…
Reference in New Issue
Block a user