From 721384062e9d812f2e12639319efb0d5c424da63 Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Fri, 30 Apr 2021 01:12:25 -0700 Subject: [PATCH] increase timeout for websocket compression tests (#52086) * increase timeout for websocket compression tests * disable for 14 and 15 on ARM --- .../System.Net.WebSockets/tests/WebSocketDeflateTests.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Net.WebSockets/tests/WebSocketDeflateTests.cs b/src/libraries/System.Net.WebSockets/tests/WebSocketDeflateTests.cs index 25efbe94b1d5bd..50ec0eb10b66ab 100644 --- a/src/libraries/System.Net.WebSockets/tests/WebSocketDeflateTests.cs +++ b/src/libraries/System.Net.WebSockets/tests/WebSocketDeflateTests.cs @@ -20,7 +20,7 @@ public WebSocketDeflateTests() { if (!Debugger.IsAttached) { - _cancellation = new CancellationTokenSource(TimeSpan.FromSeconds(5)); + _cancellation = new CancellationTokenSource(TimeSpan.FromSeconds(30)); } } @@ -421,6 +421,12 @@ public async Task ReceiveInvalidCompressedData() [MemberData(nameof(SupportedWindowBits))] public async Task PayloadShouldHaveSimilarSizeWhenSplitIntoSegments(int windowBits) { + if (PlatformDetection.IsArmOrArm64Process && (windowBits == 14 || windowBits == 15)) + { + // https://github.com/dotnet/runtime/issues/52031 + return; + } + MemoryStream stream = new(); using WebSocket client = WebSocket.CreateFromStream(stream, new WebSocketCreationOptions {