mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-07-17 18:21:28 +02:00
500
This commit is contained in:
@@ -796,7 +796,7 @@ public class WebSocketIntegrationTests(ITestOutputHelper output, ITestContextAcc
|
|||||||
var proxyUri = new Uri($"{sut.Url}/ws/proxy");
|
var proxyUri = new Uri($"{sut.Url}/ws/proxy");
|
||||||
await client.ConnectAsync(proxyUri, _ct);
|
await client.ConnectAsync(proxyUri, _ct);
|
||||||
|
|
||||||
await Task.Delay(250, _ct);
|
await Task.Delay(500, _ct);
|
||||||
|
|
||||||
var testData = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05 };
|
var testData = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05 };
|
||||||
|
|
||||||
@@ -805,7 +805,7 @@ public class WebSocketIntegrationTests(ITestOutputHelper output, ITestContextAcc
|
|||||||
|
|
||||||
var receivedData = await client.ReceiveAsBytesAsync(cancellationToken: _ct);
|
var receivedData = await client.ReceiveAsBytesAsync(cancellationToken: _ct);
|
||||||
|
|
||||||
await Task.Delay(250, _ct);
|
await Task.Delay(500, _ct);
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
receivedData.Should().BeEquivalentTo(testData, "binary data should be proxied and echoed back");
|
receivedData.Should().BeEquivalentTo(testData, "binary data should be proxied and echoed back");
|
||||||
|
|||||||
Reference in New Issue
Block a user