mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 14:42:56 +08:00
Shorten test player count to 4 for less steps
This commit is contained in:
parent
5acaafa708
commit
b7a0316194
@ -319,18 +319,18 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestPlayersLeaveWhileSpectating()
|
public void TestPlayersLeaveWhileSpectating()
|
||||||
{
|
{
|
||||||
start(getPlayerIds(8));
|
start(getPlayerIds(4));
|
||||||
sendFrames(getPlayerIds(8), 300);
|
sendFrames(getPlayerIds(4), 300);
|
||||||
|
|
||||||
loadSpectateScreen();
|
loadSpectateScreen();
|
||||||
|
|
||||||
for (int count = 7; count >= 0; count--)
|
for (int count = 3; count >= 0; count--)
|
||||||
{
|
{
|
||||||
var id = PLAYER_1_ID + count;
|
var id = PLAYER_1_ID + count;
|
||||||
|
|
||||||
end(id);
|
end(id);
|
||||||
AddUntilStep("player area grayed", () => getInstance(id).Colour != Color4.White);
|
AddUntilStep($"{id} area grayed", () => getInstance(id).Colour != Color4.White);
|
||||||
AddUntilStep("score quit set", () => getLeaderboardScore(id).HasQuit.Value);
|
AddUntilStep($"{id} score quit set", () => getLeaderboardScore(id).HasQuit.Value);
|
||||||
sendFrames(getPlayerIds(count), 300);
|
sendFrames(getPlayerIds(count), 300);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user