Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Oct 6, 2023
1 parent bf18636 commit 096c1a3
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace IceRpc.Tests.Transports;

/// <summary>Test Ssl authentication with Quic transport.</summary>
[Parallelizable(ParallelScope.All)]
public class QuicTransportSslAuthenticationTests
{
[OneTimeSetUp]
Expand Down Expand Up @@ -91,16 +92,6 @@ public async Task Quic_server_connection_connect_fails_when_client_provides_untr
Assert.That(
async () => await listener.AcceptAsync(default),
Throws.InstanceOf<AuthenticationException>());

Assert.That(
async () =>
{
// The Quic client connection fails with AuthenticationException when try to create a stream.
await clientConnectTask;
var stream = await sut.Client.CreateStreamAsync(bidirectional: false, CancellationToken.None);
await stream.Output.WriteAsync(new ReadOnlyMemory<byte>(new byte[] { 0xFF }), CancellationToken.None);
},
Throws.TypeOf<AuthenticationException>());
}

private static IServiceCollection CreateServiceCollection() =>
Expand Down

0 comments on commit 096c1a3

Please sign in to comment.