mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-21 15:14:19 +01:00
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:
committed by
Christian Decker
parent
7f18073a3a
commit
70c1f0a4ee
@@ -49,9 +49,9 @@ def test_start_no_init(node_factory, directory):
|
|||||||
options=opts, cleandir=False, may_fail=True, start=False
|
options=opts, cleandir=False, may_fail=True, start=False
|
||||||
)
|
)
|
||||||
|
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(TimeoutError):
|
||||||
# The way we detect a failure to start is when we attempt to connect
|
# The way we detect a failure to start is when start() is running
|
||||||
# to the RPC.
|
# into timeout looking for 'Server started with public key'.
|
||||||
l1.start()
|
l1.start()
|
||||||
assert(l1.daemon.is_in_log(
|
assert(l1.daemon.is_in_log(
|
||||||
r'Could not find backup.lock in the lightning-dir'
|
r'Could not find backup.lock in the lightning-dir'
|
||||||
|
|||||||
Reference in New Issue
Block a user