File tree 2 files changed +22
-0
lines changed
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,17 @@ async def test_retry_blocks_can_be_disabled():
212
212
213
213
214
214
class TestAsyncRetryingCaller :
215
+ async def test_ok (self ):
216
+ """
217
+ No error, no problem.
218
+ """
219
+ arc = stamina .AsyncRetryingCaller ().on (BaseException )
220
+
221
+ async def f ():
222
+ return 42
223
+
224
+ assert 42 == await arc (f )
225
+
215
226
async def test_retries (self ):
216
227
"""
217
228
Retries if the specific error is raised. Arguments are passed through.
Original file line number Diff line number Diff line change @@ -175,6 +175,17 @@ def test_never(self):
175
175
176
176
177
177
class TestRetryingCaller :
178
+ def test_ok (self ):
179
+ """
180
+ No error, no problem.
181
+ """
182
+ rc = stamina .RetryingCaller ().on (BaseException )
183
+
184
+ def f ():
185
+ return 42
186
+
187
+ assert 42 == rc (f )
188
+
178
189
def test_retries (self ):
179
190
"""
180
191
Retries if the specific error is raised. Arguments are passed through.
You can’t perform that action at this time.
0 commit comments