File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
src/System.Private.ServiceModel/tests/Scenarios/Extensibility/WebSockets Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -471,12 +471,12 @@ public static void WebSocket_Http_RequestReply_Streamed(NetHttpMessageEncoding m
471
471
}
472
472
473
473
// *** CLEANUP *** \\
474
- // Close the client and channel factory if not running on localhost. CoreWCF has a bug in Close method with Streamed transfer mode .
474
+ // Close the client and channel factory if not running on localhost. CoreWCF has a bug in Close method.
475
475
if ( ! ScenarioTestHelpers . IsLocalHost ( ) )
476
476
{
477
477
( ( ICommunicationObject ) client ) . Close ( ) ;
478
478
channelFactory . Close ( ) ;
479
- }
479
+ }
480
480
}
481
481
finally
482
482
{
@@ -529,9 +529,9 @@ public static void WebSocket_Http_RequestReply_Buffered(NetHttpMessageEncoding m
529
529
}
530
530
531
531
// *** CLEANUP *** \\
532
- ( ( ICommunicationObject ) client ) . Close ( ) ;
533
- channelFactory . Close ( ) ;
534
- }
532
+ ( ( ICommunicationObject ) client ) . Close ( ) ;
533
+ channelFactory . Close ( ) ;
534
+ }
535
535
finally
536
536
{
537
537
// *** ENSURE CLEANUP *** \\
@@ -583,8 +583,12 @@ public static void WebSocket_Http_RequestReply_Buffered_KeepAlive(NetHttpMessage
583
583
}
584
584
585
585
// *** CLEANUP *** \\
586
- ( ( ICommunicationObject ) client ) . Close ( ) ;
587
- channelFactory . Close ( ) ;
586
+ // Close the client and channel factory if not running on localhost. CoreWCF has a bug in Close method.
587
+ if ( ! ScenarioTestHelpers . IsLocalHost ( ) )
588
+ {
589
+ ( ( ICommunicationObject ) client ) . Close ( ) ;
590
+ channelFactory . Close ( ) ;
591
+ }
588
592
}
589
593
finally
590
594
{
You can’t perform that action at this time.
0 commit comments