failover: store result in FailoverException
This commit is contained in:
parent
8a1b48dd8c
commit
d2909c0e4d
3 changed files with 11 additions and 9 deletions
|
@ -18,7 +18,7 @@ def my_failover_func(i, should_raise=None):
|
|||
i.increment()
|
||||
if should_raise is not None:
|
||||
raise should_raise()
|
||||
raise FailoverException('incrementing')
|
||||
raise FailoverException(None, 'incrementing')
|
||||
|
||||
|
||||
@pytest.mark.parametrize('stop_on,exception', [
|
||||
|
|
Reference in a new issue