From f69747bc89e605868e34bc08feb5740bd05b105d Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 18 Feb 2022 19:10:11 -0300 Subject: [PATCH] timeout is now supported on dht tests --- tests/unit/dht/test_blob_announcer.py | 2 -- tests/unit/dht/test_node.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/tests/unit/dht/test_blob_announcer.py b/tests/unit/dht/test_blob_announcer.py index d5b2c5e17..be445aae7 100644 --- a/tests/unit/dht/test_blob_announcer.py +++ b/tests/unit/dht/test_blob_announcer.py @@ -17,8 +17,6 @@ from lbry.extras.daemon.storage import SQLiteStorage class TestBlobAnnouncer(AsyncioTestCase): - TIMEOUT = 20.0 # lower than default - async def setup_node(self, peer_addresses, address, node_id): self.nodes: typing.Dict[int, Node] = {} self.advance = dht_mocks.get_time_accelerator(self.loop) diff --git a/tests/unit/dht/test_node.py b/tests/unit/dht/test_node.py index fcf65ff10..5ecad5181 100644 --- a/tests/unit/dht/test_node.py +++ b/tests/unit/dht/test_node.py @@ -12,7 +12,6 @@ from lbry.extras.daemon.storage import SQLiteStorage class TestNodePingQueueDiscover(AsyncioTestCase): - TIMEOUT = None # not supported as it advances time async def test_ping_queue_discover(self): loop = asyncio.get_event_loop() loop.set_debug(False) @@ -93,7 +92,6 @@ class TestNodePingQueueDiscover(AsyncioTestCase): class TestTemporarilyLosingConnection(AsyncioTestCase): - TIMEOUT = None # not supported as it advances time @unittest.SkipTest async def test_losing_connection(self): async def wait_for(check_ok, insist, timeout=20):