Skip to content

Fix test failure warnings #4523

Fix test failure warnings

Fix test failure warnings #4523

Triggered via pull request January 26, 2025 03:30
@vicancyvicancy
synchronize #2142
vicancy:hft1
Status Failure
Total duration 1m 10s
Artifacts

ubuntu.yml

on: pull_request
Matrix: build_ubuntu

Annotations

10 errors and 12 warnings
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs#L535
The behavior of 'int.ToString()' could vary based on the current user's locale settings. Replace this call in 'NegotiateHandlerFacts.TestNegotiateHandlerResponseContainsValidMaxPollInterval(int)' with a call to 'int.ToString(IFormatProvider)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs#L709
Type 'ConnectionIdUserIdProvider' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs#L677
Type 'TestCustomRouter' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs#L724
Type 'ProtocolUserIdProvider' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs#L704
Type 'NullUserIdProvider' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs#L714
Type 'ConnectionAbortedTokenUserIdProvider' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs#L696
Type 'CustomUserIdProvider' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs#L719
Type 'ItemsUserIdProvider' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs#L535
The behavior of 'int.ToString()' could vary based on the current user's locale settings. Replace this call in 'NegotiateHandlerFacts.TestNegotiateHandlerResponseContainsValidMaxPollInterval(int)' with a call to 'int.ToString(IFormatProvider)'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1305)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.Tests/NegotiateHandlerFacts.cs#L709
Type 'ConnectionIdUserIdProvider' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)
build_ubuntu (8.0.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build_ubuntu (8.0.x)
No files were found with the provided path: TestResults-ubuntu-8.0.x. No artifacts will be uploaded.
build_ubuntu (8.0.x)
The target framework 'net7.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
build_ubuntu (8.0.x)
The target framework 'net7.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.IntegrationTests/Infrastructure/HotReloadIntegrationTestStartup.cs#L34
Member 's_config' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.IntegrationTests/Infrastructure/MockServiceConnection.cs#L17
Member 'Number' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.IntegrationTests/MockService/ConnectionTrackingMockService.cs#L35
Member 'RemoveUnregisteredConnections' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.IntegrationTests/MockService/MockServiceSideClientConnection.cs#L32
Member '_invId' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.IntegrationTests/MockService/MockServiceSideConnection.cs#L31
Member 's_clientConnNum' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.IntegrationTests/MockService/MockServiceSideConnection.cs#L40
Member '_processIncomingException' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.IntegrationTests/MockService/MockServiceSideConnection.cs#L33
Member 's_index' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)
build_ubuntu (8.0.x): test/Microsoft.Azure.SignalR.IntegrationTests/MockService/MockServiceSideConnection.cs#L37
Member '_stopped' is explicitly initialized to its default value (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1805)