File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
tests/MongoDB.Driver.Core.Tests/Core/Servers Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -406,6 +406,8 @@ internal void IsRecovering_should_return_expected_result_for_message(string mess
406
406
[ InlineData ( nameof ( MongoNodeIsRecoveringException ) , true ) ]
407
407
[ InlineData ( nameof ( MongoNotPrimaryException ) , true ) ]
408
408
[ InlineData ( nameof ( SocketException ) , true ) ]
409
+ [ InlineData ( nameof ( TimeoutException ) , false ) ]
410
+ [ InlineData ( nameof ( MongoExecutionTimeoutException ) , false ) ]
409
411
internal void ShouldInvalidateServer_should_return_expected_result_for_exceptionType( string exceptionTypeName , bool expectedResult )
410
412
{
411
413
_subject. Initialize ( ) ;
@@ -424,6 +426,8 @@ internal void ShouldInvalidateServer_should_return_expected_result_for_exception
424
426
case nameof( MongoNodeIsRecoveringException ) : exception = new MongoNodeIsRecoveringException( connectionId , command , commandResult ) ; break ;
425
427
case nameof( MongoNotPrimaryException ) : exception = new MongoNotPrimaryException( connectionId , command , commandResult ) ; break ;
426
428
case nameof( SocketException ) : exception = new SocketException( ) ; break ;
429
+ case nameof( TimeoutException ) : exception = new TimeoutException( ) ; break ;
430
+ case nameof( MongoExecutionTimeoutException ) : exception = new MongoExecutionTimeoutException( connectionId , "message" ) ; break ;
427
431
default : throw new Exception( $ "Invalid exceptionTypeName: { exceptionTypeName } .") ;
428
432
}
429
433
You can’t perform that action at this time.
0 commit comments