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