File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
projects/Test/Integration Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ namespace Test.Integration
4646 public class TestConnectionShutdown : IntegrationFixture
4747 {
4848 // default Connection.Abort() timeout and then some
49- private readonly TimeSpan _waitSpan = TimeSpan . FromSeconds ( 10 ) ;
49+ private readonly TimeSpan _waitSpan = TimeSpan . FromSeconds ( 6 ) ;
5050
5151 public TestConnectionShutdown ( ITestOutputHelper output ) : base ( output )
5252 {
@@ -132,6 +132,15 @@ public async Task TestAbortWithSocketClosedOutOfBandAndCancellation()
132132 }
133133 } ;
134134
135+ _conn . ConnectionShutdownAsync += ( c , args ) =>
136+ {
137+ if ( tcs . TrySetResult ( true ) )
138+ {
139+ _output . WriteLine ( "[ERROR] {0}: completed tcs via ConnectionShutdownAsync" , _testDisplayName ) ;
140+ }
141+ return Task . CompletedTask ;
142+ } ;
143+
135144 var c = ( AutorecoveringConnection ) _conn ;
136145 ValueTask frameHandlerCloseTask = c . CloseFrameHandlerAsync ( ) ;
137146
You can’t perform that action at this time.
0 commit comments