mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 10:01:54 +00:00
Timeout if i2pd never starts.
This commit is contained in:
parent
ddca3e9ab8
commit
982ac3cc33
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user