forked from LBRYCommunity/lbry-sdk
timeout is now supported on dht tests
This commit is contained in:
parent
441cc950aa
commit
f69747bc89
2 changed files with 0 additions and 4 deletions
|
@ -17,8 +17,6 @@ from lbry.extras.daemon.storage import SQLiteStorage
|
||||||
|
|
||||||
|
|
||||||
class TestBlobAnnouncer(AsyncioTestCase):
|
class TestBlobAnnouncer(AsyncioTestCase):
|
||||||
TIMEOUT = 20.0 # lower than default
|
|
||||||
|
|
||||||
async def setup_node(self, peer_addresses, address, node_id):
|
async def setup_node(self, peer_addresses, address, node_id):
|
||||||
self.nodes: typing.Dict[int, Node] = {}
|
self.nodes: typing.Dict[int, Node] = {}
|
||||||
self.advance = dht_mocks.get_time_accelerator(self.loop)
|
self.advance = dht_mocks.get_time_accelerator(self.loop)
|
||||||
|
|
|
@ -12,7 +12,6 @@ from lbry.extras.daemon.storage import SQLiteStorage
|
||||||
|
|
||||||
|
|
||||||
class TestNodePingQueueDiscover(AsyncioTestCase):
|
class TestNodePingQueueDiscover(AsyncioTestCase):
|
||||||
TIMEOUT = None # not supported as it advances time
|
|
||||||
async def test_ping_queue_discover(self):
|
async def test_ping_queue_discover(self):
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
loop.set_debug(False)
|
loop.set_debug(False)
|
||||||
|
@ -93,7 +92,6 @@ class TestNodePingQueueDiscover(AsyncioTestCase):
|
||||||
|
|
||||||
|
|
||||||
class TestTemporarilyLosingConnection(AsyncioTestCase):
|
class TestTemporarilyLosingConnection(AsyncioTestCase):
|
||||||
TIMEOUT = None # not supported as it advances time
|
|
||||||
@unittest.SkipTest
|
@unittest.SkipTest
|
||||||
async def test_losing_connection(self):
|
async def test_losing_connection(self):
|
||||||
async def wait_for(check_ok, insist, timeout=20):
|
async def wait_for(check_ok, insist, timeout=20):
|
||||||
|
|
Loading…
Reference in a new issue