Skip to content

Commit

Permalink
returned conditional check in add_timeout() as it was making test_nod…
Browse files Browse the repository at this point in the history
…e.py tests unhappy
  • Loading branch information
FemtosecondLaser authored and FemtosecondLaser committed Nov 30, 2021
1 parent d4ebfdb commit d69486f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lbry/testcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ def cancel(self):
task.cancel()

def add_timeout(self):
self.loop.call_later(self.TIMEOUT, self.cancel)
if self.TIMEOUT:
self.loop.call_later(self.TIMEOUT, self.cancel)


class AdvanceTimeTestCase(AsyncioTestCase):
Expand Down

0 comments on commit d69486f

Please sign in to comment.