diff --git a/lbry/testcase.py b/lbry/testcase.py index 9a8e8d72d..6ad0dcb13 100644 --- a/lbry/testcase.py +++ b/lbry/testcase.py @@ -201,7 +201,8 @@ class AsyncioTestCase(unittest.TestCase): 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):