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
406406 [ InlineData ( nameof ( MongoNodeIsRecoveringException ) , true ) ]
407407 [ InlineData ( nameof ( MongoNotPrimaryException ) , true ) ]
408408 [ InlineData ( nameof ( SocketException ) , true ) ]
409+ [ InlineData ( nameof ( TimeoutException ) , false ) ]
410+ [ InlineData ( nameof ( MongoExecutionTimeoutException ) , false ) ]
409411 internal void ShouldInvalidateServer_should_return_expected_result_for_exceptionType( string exceptionTypeName , bool expectedResult )
410412 {
411413 _subject. Initialize ( ) ;
@@ -424,6 +426,8 @@ internal void ShouldInvalidateServer_should_return_expected_result_for_exception
424426 case nameof( MongoNodeIsRecoveringException ) : exception = new MongoNodeIsRecoveringException( connectionId , command , commandResult ) ; break ;
425427 case nameof( MongoNotPrimaryException ) : exception = new MongoNotPrimaryException( connectionId , command , commandResult ) ; break ;
426428 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 ;
427431 default : throw new Exception( $ "Invalid exceptionTypeName: { exceptionTypeName } .") ;
428432 }
429433
You can’t perform that action at this time.
0 commit comments