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

Commit

Permalink
Merge pull request #537 from pjenvey/wait_for_times-fix
Browse files Browse the repository at this point in the history
test: don't hide wait_for_times test failures
  • Loading branch information
bbangert authored Jul 20, 2016
2 parents 0c81d69 + fe98d4c commit 5548eb8
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 5548eb8

Please sign in to comment.