1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:47:24 +08:00
osu-lazer/osu.Game/Tests/Visual
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
..
Multiplayer Remove room null assertion in TestMultiplayerClient.ChangeState to avoid assert 2022-06-23 14:10:20 +09:00
OnlinePlay Automated #nullable processing 2022-06-17 16:37:17 +09:00
Spectator Automated #nullable processing 2022-06-17 16:37:17 +09:00
DependencyProvidingContainer.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
EditorClockTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
EditorSavingTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
EditorTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
LegacySkinPlayerTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
ModPerfectTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
ModTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
OsuGameTestScene.cs Add limited test coverage of osu:// scheme link IPC flow 2022-06-20 22:22:25 +02:00
OsuGridTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
OsuManualInputManagerTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
OsuTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
PlacementBlueprintTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
PlayerTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
RateAdjustedBeatmapTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
ScreenTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
ScrollingTestContainer.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
SelectionBlueprintTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
SkinnableTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestPlayer.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestReplayPlayer.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestUserLookupCache.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00