Skip to content

Commit 8c02e0e

Browse files
committed
remove sslStream
1 parent 3c1f92e commit 8c02e0e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/Servers/Kestrel/test/InMemory.FunctionalTests/TlsListenerTests.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,11 @@ public async Task TlsClientHelloBytesCallback_UsesOptionsTimeout()
9595
{
9696
using (var connection = server.CreateConnection())
9797
{
98-
using (var sslStream = new SslStream(connection.Stream, false, (sender, cert, chain, errors) => true, null))
99-
{
100-
await connection.TransportConnection.Input.WriteAsync(new byte[] { 0x16 });
101-
var readResult = await connection.TransportConnection.Output.ReadAsync();
98+
await connection.TransportConnection.Input.WriteAsync(new byte[] { 0x16 });
99+
var readResult = await connection.TransportConnection.Output.ReadAsync();
102100

103-
// HttpsConnectionMiddleware catches the exception, so we can only check the effects of the timeout here
104-
Assert.True(readResult.IsCompleted);
105-
}
101+
// HttpsConnectionMiddleware catches the exception, so we can only check the effects of the timeout here
102+
Assert.True(readResult.IsCompleted);
106103
}
107104
}
108105

0 commit comments

Comments
 (0)