diff --git a/lbry/testcase.py b/lbry/testcase.py index 9a8e8d72d8..6ad0dcb135 100644 --- a/lbry/testcase.py +++ b/lbry/testcase.py @@ -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):