backup: fix a broken testcase

This fix works, but its a bit slow as it waits for a 30 second timeout
when a node could not have been started.
This commit is contained in:
Michael Schmoock
2022-12-27 13:53:02 +01:00
committed by Christian Decker
parent 7f18073a3a
commit 70c1f0a4ee

View File

@@ -49,9 +49,9 @@ def test_start_no_init(node_factory, directory):
options=opts, cleandir=False, may_fail=True, start=False
)
with pytest.raises(ValueError):
# The way we detect a failure to start is when we attempt to connect
# to the RPC.
with pytest.raises(TimeoutError):
# The way we detect a failure to start is when start() is running
# into timeout looking for 'Server started with public key'.
l1.start()
assert(l1.daemon.is_in_log(
r'Could not find backup.lock in the lightning-dir'