failover: store result in FailoverException

This commit is contained in:
Jimmy Zelinskie 2017-02-14 14:33:11 -05:00
parent 8a1b48dd8c
commit d2909c0e4d
3 changed files with 11 additions and 9 deletions

View file

@ -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', [