File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -254,12 +254,14 @@ public async Task Initialize_WhenInitResponseStatusIsRetryable_ShouldRetryInitia
254254
255255 // check attempt repeated!!!
256256 _mockStream . Verify ( stream => stream . Write ( It . IsAny < FromClient > ( ) ) , Times . Exactly ( 3 ) ) ;
257- _mockStream . Verify ( stream => stream . MoveNextAsync ( ) , Times . Exactly ( 4 ) ) ;
257+ _mockStream . Verify ( stream => stream . MoveNextAsync ( ) ,
258+ Times . AtLeast ( 3 ) ) ; // run processing ack may not be able to start on time
258259 _mockStream . Verify ( stream => stream . Current , Times . Exactly ( 3 ) ) ;
259260 }
260261
261262 [ Fact ]
262- public async Task Initialize_WhenInitResponseStatusIsRetryable_ThrowWriterExceptionOnWriteAsyncAndStopInitializing ( )
263+ public async Task
264+ Initialize_WhenInitResponseStatusIsNotRetryable_ThrowWriterExceptionOnWriteAsyncAndStopInitializing ( )
263265 {
264266 _mockStream . Setup ( stream => stream . Write ( It . IsAny < FromClient > ( ) ) )
265267 . Returns ( Task . CompletedTask ) ;
You can’t perform that action at this time.
0 commit comments