From f8fe205066d4ed6ec94b1e3257d3155417ba2cb0 Mon Sep 17 00:00:00 2001 From: FemtosecondLaser <38204088+FemtosecondLaser@users.noreply.github.com> Date: Tue, 30 Nov 2021 01:01:35 +0000 Subject: [PATCH] returned conditional check in add_timeout() as it was making test_node.py tests unhappy --- lbry/testcase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):