1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 09:23:06 +08:00

Fix intermittent test failure

This commit is contained in:
smoogipoo 2021-04-08 21:38:58 +09:00
parent 1e23f671fa
commit 70cd018a98

View File

@ -93,7 +93,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
InputManager.Click(MouseButton.Left); InputManager.Click(MouseButton.Left);
}); });
AddWaitStep("wait", 10); AddUntilStep("wait for join", () => Client.Room != null);
} }
[Test] [Test]
@ -114,6 +114,8 @@ namespace osu.Game.Tests.Visual.Multiplayer
InputManager.Click(MouseButton.Left); InputManager.Click(MouseButton.Left);
}); });
AddUntilStep("wait for room join", () => Client.Room != null);
AddStep("join other user (ready)", () => AddStep("join other user (ready)", () =>
{ {
Client.AddUser(new User { Id = 55 }); Client.AddUser(new User { Id = 55 });