1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 12:53:11 +08:00

Fix crash on visual esting TestSceneChatOverlay due to null user

This commit is contained in:
Dean Herbert 2022-06-30 03:43:56 +09:00
parent 6911b959a6
commit 13108155d3

View File

@ -39,7 +39,8 @@ namespace osu.Game.Tests.Visual.Online
private TestChatOverlay chatOverlay;
private ChannelManager channelManager;
private APIUser testUser;
private readonly APIUser testUser = new APIUser { Username = "test user", Id = 5071479 };
private Channel[] testChannels;
private Channel testChannel1 => testChannels[0];
@ -51,7 +52,6 @@ namespace osu.Game.Tests.Visual.Online
[SetUp]
public void SetUp() => Schedule(() =>
{
testUser = new APIUser { Username = "test user", Id = 5071479 };
testChannels = Enumerable.Range(1, 10).Select(createPublicChannel).ToArray();
Child = new DependencyProvidingContainer