Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
test: don't hide wait_for_times test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
pjenvey committed Jul 20, 2016
1 parent 0c81d69 commit fe98d4c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions autopush/tests/test_websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -1261,11 +1261,9 @@ def raise_exception(*args, **kwargs):

def wait_for_times(): # pragma: nocover
if len(self.proto.log.failure.mock_calls) > 0:
try:
eq_(len(self.proto.log.failure.mock_calls), 1)
finally:
d.callback(True)
return
eq_(len(self.proto.log.failure.mock_calls), 1)
d.callback(True)
return
reactor.callLater(0.1, wait_for_times)

reactor.callLater(0.1, wait_for_times)
Expand Down

0 comments on commit fe98d4c

Please sign in to comment.