returned conditional check in add_timeout() as it was making test_node.py tests unhappy

This commit is contained in:
FemtosecondLaser 2021-11-30 01:01:35 +00:00 committed by Victor Shyba
parent 9908775576
commit f8fe205066

View file

@ -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):