mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-09 02:13:32 +02:00
Compare commits
1 Commits
master
...
Fix_WebSoc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3eca5d44ee |
@@ -811,10 +811,10 @@ public class WebSocketIntegrationTests(ITestOutputHelper output, ITestContextAcc
|
|||||||
// Act
|
// Act
|
||||||
await client.SendAsync(new ArraySegment<byte>(testData), WebSocketMessageType.Binary, true, _ct);
|
await client.SendAsync(new ArraySegment<byte>(testData), WebSocketMessageType.Binary, true, _ct);
|
||||||
|
|
||||||
var receivedData = await client.ReceiveAsBytesAsync(cancellationToken: _ct);
|
|
||||||
|
|
||||||
await Task.Delay(500, _ct);
|
await Task.Delay(500, _ct);
|
||||||
|
|
||||||
|
var receivedData = await client.ReceiveAsBytesAsync(cancellationToken: _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");
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,7 @@
|
|||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Meziantou.Extensions.Logging.Xunit.v3" Version="1.1.24" />
|
<PackageReference Include="Meziantou.Extensions.Logging.Xunit.v3" Version="1.1.24" />
|
||||||
<PackageReference Include="Verify.XunitV3" Version="31.13.2" />
|
<PackageReference Include="Verify.XunitV3" Version="31.13.2" />
|
||||||
|
<PackageReference Include="xRetry.v3" Version="1.0.0-rc3" />
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
|
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
|||||||
Reference in New Issue
Block a user