Skip to content

Commit

Permalink
increase timeout for websocket compression tests (#52086)
Browse files Browse the repository at this point in the history
* increase timeout for websocket compression tests
* disable for 14 and 15 on ARM
  • Loading branch information
danmoseley authored Apr 30, 2021
1 parent 7512c89 commit 7213840
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public WebSocketDeflateTests()
{
if (!Debugger.IsAttached)
{
_cancellation = new CancellationTokenSource(TimeSpan.FromSeconds(5));
_cancellation = new CancellationTokenSource(TimeSpan.FromSeconds(30));
}
}

Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 7213840

Please sign in to comment.