Timeout if i2pd never starts.

This commit is contained in:
Itamar Turner-Trauring 2021-07-29 10:02:02 -04:00
parent ddca3e9ab8
commit 982ac3cc33

View File

@ -56,7 +56,6 @@ def i2p_network(reactor, temp_dir, request):
"--reseed.urls", "http://localhost:1/",
),
)
pytest_twisted.blockon(proto.magic_seen)
def cleanup():
try:
@ -66,6 +65,8 @@ def i2p_network(reactor, temp_dir, request):
pass
request.addfinalizer(cleanup)
util.block_with_timeout(proto.magic_seen, reactor, timeout=30)
@pytest.fixture(scope='session')
@log_call(