File tree 1 file changed +3
-2
lines changed
src/libraries/System.Net.Security/tests/FunctionalTests
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public async Task Dispose_PendingReadAsync_ThrowsODE(bool bufferedRead)
60
60
using CancellationTokenSource cts = new CancellationTokenSource ( ) ;
61
61
cts . CancelAfter ( TestConfiguration . PassingTestTimeout ) ;
62
62
63
- ( SslStream client , SslStream server ) = TestHelper . GetConnectedSslStreams ( leaveInnerStreamOpen : true ) ;
63
+ ( SslStream client , SslStream server ) = TestHelper . GetConnectedStreams ( ) ;
64
64
using ( client )
65
65
using ( server )
66
66
using ( X509Certificate2 serverCertificate = Configuration . Certificates . GetServerCertificate ( ) )
@@ -150,7 +150,8 @@ static async Task ValidateExceptionAsync(Task task)
150
150
await task ;
151
151
}
152
152
catch ( Exception ex ) when ( ex
153
- is ObjectDisposedException // disposed locally
153
+ is ObjectDisposedException // disposed locall
154
+ or InvalidOperationException // Writing to a disposed ConnectedStream (test only, does not happen with NetworkStream)
154
155
or IOException // disposed remotely (received unexpected EOF)
155
156
or AuthenticationException ) // disposed wrapped in AuthenticationException or error from platform library
156
157
{
You can’t perform that action at this time.
0 commit comments