Fix WebSocket tests

This commit is contained in:
Stef Heyenrath
2026-04-03 10:59:03 +02:00
parent 479bb0b8ec
commit 3eca5d44ee
2 changed files with 3 additions and 2 deletions

View File

@@ -811,10 +811,10 @@ public class WebSocketIntegrationTests(ITestOutputHelper output, ITestContextAcc
// Act
await client.SendAsync(new ArraySegment<byte>(testData), WebSocketMessageType.Binary, true, _ct);
var receivedData = await client.ReceiveAsBytesAsync(cancellationToken: _ct);
await Task.Delay(500, _ct);
var receivedData = await client.ReceiveAsBytesAsync(cancellationToken: _ct);
// Assert
receivedData.Should().BeEquivalentTo(testData, "binary data should be proxied and echoed back");