@@ -40,7 +40,7 @@ public void ThrowsOutOfNodesException_AndRetriesTheSpecifiedTimes()
40
40
41
41
client . Settings . MaxRetries . Should ( ) . Be ( _retries ) ;
42
42
43
- Assert . Throws < OutOfNodesException > ( ( ) => client . Info ( ) ) ;
43
+ Assert . Throws < MaxRetryException > ( ( ) => client . Info ( ) ) ;
44
44
getCall . MustHaveHappened ( Repeated . Exactly . Times ( _retries + 1 ) ) ;
45
45
46
46
}
@@ -70,11 +70,11 @@ public async void ThrowsOutOfNodesException_AndRetriesTheSpecifiedTimes_Async()
70
70
}
71
71
catch ( AggregateException ae )
72
72
{
73
- Assert . AreEqual ( typeof ( OutOfNodesException ) , ae . InnerException . GetType ( ) ) ;
73
+ Assert . AreEqual ( typeof ( MaxRetryException ) , ae . InnerException . GetType ( ) ) ;
74
74
}
75
75
catch ( Exception e )
76
76
{
77
- Assert . AreEqual ( typeof ( OutOfNodesException ) , e . GetType ( ) ) ;
77
+ Assert . AreEqual ( typeof ( MaxRetryException ) , e . GetType ( ) ) ;
78
78
}
79
79
getCall . MustHaveHappened ( Repeated . Exactly . Times ( _retries + 1 ) ) ;
80
80
@@ -168,7 +168,7 @@ public void ShouldRetryOn503()
168
168
169
169
var client = fake . Resolve < ElasticsearchClient > ( ) ;
170
170
171
- Assert . Throws < OutOfNodesException > ( ( ) => client . Info ( ) ) ;
171
+ Assert . Throws < MaxRetryException > ( ( ) => client . Info ( ) ) ;
172
172
getCall . MustHaveHappened ( Repeated . Exactly . Times ( _retries + 1 ) ) ;
173
173
174
174
}
@@ -192,11 +192,11 @@ public async void ShouldRetryOn503_Async()
192
192
}
193
193
catch ( AggregateException e )
194
194
{
195
- Assert . AreEqual ( e . InnerException . GetType ( ) , typeof ( OutOfNodesException ) ) ;
195
+ Assert . AreEqual ( e . InnerException . GetType ( ) , typeof ( MaxRetryException ) ) ;
196
196
}
197
197
catch ( Exception e )
198
198
{
199
- Assert . AreEqual ( e . GetType ( ) , typeof ( OutOfNodesException ) ) ;
199
+ Assert . AreEqual ( e . GetType ( ) , typeof ( MaxRetryException ) ) ;
200
200
}
201
201
getCall . MustHaveHappened ( Repeated . Exactly . Times ( _retries + 1 ) ) ;
202
202
0 commit comments