File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/ImazenShared.Tests/Abstractions/Concurrency Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -405,12 +405,12 @@ async ValueTask<int> TestOverlappingTask(CancellationToken ct)
405405 var tasks = new Task [ 100 ] ;
406406 for ( int i = 0 ; i < tasks . Length ; i ++ )
407407 {
408- tasks [ i ] = runner . RunAsync ( default , TestContext . Current . CancellationToken ) . AsTask ( ) ;
408+ tasks [ i ] = runner . RunAsync ( default , TestContext . Current . CancellationToken ) . AsTask ( ) ;
409409 }
410410
411411 await runner . StopAsync ( TestContext . Current . CancellationToken ) ;
412412 // ensure all proxy tasks are cancelled
413- await Assert . ThrowsAsync < TaskCanceledException > ( async ( ) => await Task . WhenAll ( tasks ) ) ;
413+ await Assert . ThrowsAnyAsync < System . OperationCanceledException > ( async ( ) => await Task . WhenAll ( tasks ) ) ;
414414 }
415415
416416 [ Fact ]
You can’t perform that action at this time.
0 commit comments