Fix chat tests failing 1/10000 runs

31a447fda0/osu.Game/Online/Chat/ChannelManager.cs (L412-L414)

Sigh.
This commit is contained in:
Dean Herbert
2022-06-27 16:50:07 +09:00
parent 2b278ed324
commit 13dcaf82ad
2 changed files with 5 additions and 3 deletions

View File

@ -549,7 +549,7 @@ namespace osu.Game.Tests.Visual.Online
private Channel createPrivateChannel()
{
int id = RNG.Next(0, 10000);
int id = RNG.Next(0, DummyAPIAccess.DUMMY_USER_ID - 1);
return new Channel(new APIUser
{
Id = id,
@ -559,7 +559,7 @@ namespace osu.Game.Tests.Visual.Online
private Channel createAnnounceChannel()
{
int id = RNG.Next(0, 10000);
int id = RNG.Next(0, DummyAPIAccess.DUMMY_USER_ID - 1);
return new Channel
{
Name = $"Announce {id}",