Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,6 @@ 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 All @@ -440,11 +434,11 @@ public async Task PayloadShouldHaveSimilarSizeWhenSplitIntoSegments(int windowBi
int frameSize = 2 << windowBits;

byte[] message = new byte[frameSize * 10];
Random random = new(0);
new Random(0).NextBytes(message);

for (int i = 0; i < message.Length; ++i)
{
message[i] = (byte)random.Next(maxValue: 10);
message[i] %= 10;
}

await client.SendAsync(message, WebSocketMessageType.Binary, true, CancellationToken);
Expand Down