1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Merge pull request #18982 from peppy/fix-channel-id-clash

Fix ID clash with announce and PM channels in chat overlay tests
This commit is contained in:
Salman Ahmed 2022-07-02 11:14:14 +03:00 committed by GitHub
commit 720bb7fd75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -576,12 +576,13 @@ namespace osu.Game.Tests.Visual.Online
private Channel createAnnounceChannel()
{
int id = RNG.Next(0, DummyAPIAccess.DUMMY_USER_ID - 1);
const int announce_channel_id = 133337;
return new Channel
{
Name = $"Announce {id}",
Name = $"Announce {announce_channel_id}",
Type = ChannelType.Announce,
Id = id,
Id = announce_channel_id,
};
}