1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 19:53:23 +08:00

Fix ID clash with announce and PM channels in chat overlay tests

Yet Another Issue.

https://github.com/ppy/osu/runs/7159306924?check_suite_focus=true

Not sure why announce channel was using a user id for its channel ID.
Bad copy paste?
This commit is contained in:
Dean Herbert 2022-07-02 13:11:49 +09:00
parent 426c53fe65
commit 2352636bf2

View File

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