1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00
osu-lazer/osu.Game
Dean Herbert bc557bacf0 Remove room null assertion in TestMultiplayerClient.ChangeState to avoid assert
This method is run from async contexts, but `get_Room` asserts update
thread which is not the case. Was causing silent test failures (showing
as pass but failing `dotnet-test` via return code):

TestSceneMultiplayer.TestGameplayFlow

```
[13:13:17] :         [dotnet test] [runtime] 2022-06-22 13:13:16 [error]: Score preparation failed!
[13:13:17] :         [dotnet test] [runtime] 2022-06-22 13:13:16 [error]: NUnit.Framework.AssertionException: :
[13:13:17] :         [dotnet test] [runtime] 2022-06-22 13:13:16 [error]: at osu.Framework.Logging.ThrowingTraceListener.Fail(String message1, String message2)
[13:13:17] :         [dotnet test] [runtime] 2022-06-22 13:13:16 [error]: at System.Diagnostics.TraceInternal.Fail(String message, String detailMessage)
[13:13:17] :         [dotnet test] [runtime] 2022-06-22 13:13:16 [error]: at System.Diagnostics.TraceInternal.TraceProvider.Fail(String message, String detailMessage)
[13:13:17] :         [dotnet test] [runtime] 2022-06-22 13:13:16 [error]: at System.Diagnostics.Debug.Fail(String message, String detailMessage)
[13:13:17] :         [dotnet test] [runtime] 2022-06-22 13:13:16 [error]: at osu.Game.Online.Multiplayer.MultiplayerClient.get_Room() in /opt/buildagent/work/ecd860037212ac52/osu.Game/Online/Multiplayer/MultiplayerClient.cs:line 98
[13:13:17] :         [dotnet test] [runtime] 2022-06-22 13:13:16 [error]: at osu.Game.Tests.Visual.Multiplayer.TestMultiplayerClient.ChangeState(MultiplayerUserState newState) in /opt/buildagent/work/ecd860037212ac52/osu.Game/Tests/Visual/Multiplayer/TestMultiplayerClient.cs:line 275
[13:13:17] :         [dotnet test] [runtime] 2022-06-22 13:13:16 [error]: at osu.Game.Screens.OnlinePlay.Multiplayer.MultiplayerPlayer.PrepareScoreForResultsAsync(Score score) in /opt/buildagent/work/ecd860037212ac52/osu.Game/Screens/OnlinePlay/Multiplayer/MultiplayerPlayer.cs:line 223
[13:13:17] :         [dotnet test] [runtime] 2022-06-22 13:13:16 [error]: at osu.Game.Screens.Play.Player.prepareScoreForResults() in /opt/buildagent/work/ecd860037212ac52/osu.Game/Screens/Play/Player.cs:line 747
```
2022-06-23 14:10:20 +09:00
..
Audio Automated #nullable processing 2022-06-17 16:37:17 +09:00
Beatmaps Merge pull request #18668 from smoogipoo/editor-controlpoint-undo-redo 2022-06-23 04:02:24 +09:00
Collections Automated #nullable processing 2022-06-17 16:37:17 +09:00
Configuration Add setting for changing mod select hotkey style 2022-06-21 13:33:17 +02:00
Database Fix collection modified during BlockAllOperations if any subscriptions have been established 2022-06-22 20:34:05 +09:00
Extensions Automated #nullable processing 2022-06-17 16:37:17 +09:00
Graphics Merge pull request #18668 from smoogipoo/editor-controlpoint-undo-redo 2022-06-23 04:02:24 +09:00
Input Automated #nullable processing 2022-06-17 16:37:17 +09:00
IO Automated #nullable processing 2022-06-17 16:37:17 +09:00
IPC Handle osu:// scheme links via IPC in desktop game 2022-06-20 21:26:22 +02:00
Localisation Add setting for changing mod select hotkey style 2022-06-21 13:33:17 +02:00
Migrations Automated #nullable processing 2022-06-17 16:37:17 +09:00
Models Automated #nullable processing 2022-06-17 16:37:17 +09:00
Online Add and use ILinkHandler interface 2022-06-20 20:04:21 +02:00
Overlays Merge pull request #18796 from bdach/mod-overlay/legacy-key-bindings 2022-06-22 20:28:18 +09:00
Performance Automated #nullable processing 2022-06-17 16:37:17 +09:00
Properties Automated #nullable processing 2022-06-17 16:37:17 +09:00
Replays Automated #nullable processing 2022-06-17 16:37:17 +09:00
Rulesets Convert == usages to ReferenceEquals 2022-06-20 16:56:19 +09:00
Scoring Merge branch 'master' into importer-post-import-rename 2022-06-20 13:37:16 +02:00
Screens Merge pull request #18668 from smoogipoo/editor-controlpoint-undo-redo 2022-06-23 04:02:24 +09:00
Skinning PostImport -> PresentImport 2022-06-20 18:36:29 +09:00
Storyboards Automated #nullable processing 2022-06-17 16:37:17 +09:00
Tests Remove room null assertion in TestMultiplayerClient.ChangeState to avoid assert 2022-06-23 14:10:20 +09:00
Updater Automated #nullable processing 2022-06-17 16:37:17 +09:00
Users Automated #nullable processing 2022-06-17 16:37:17 +09:00
Utils Automated #nullable processing 2022-06-17 16:37:17 +09:00
.editorconfig Add localisation length hinting 2022-04-28 19:26:28 +09:00
osu!.res And then everything became one 2017-09-19 16:06:58 +09:00
osu.Game.csproj Update framework 2022-06-21 18:13:14 +09:00
OsuGame.cs Add and use ILinkHandler interface 2022-06-20 20:04:21 +02:00
OsuGameBase_Importing.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
OsuGameBase.cs Merge branch 'master' into input-settings 2022-06-20 22:55:43 +02:00
PerformFromMenuRunner.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00