From 70c1f0a4ee14132105a43537971d702ced99ceb1 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Tue, 27 Dec 2022 13:53:02 +0100 Subject: [PATCH] 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. --- backup/test_backup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backup/test_backup.py b/backup/test_backup.py index 95ffcea..8f3f625 100644 --- a/backup/test_backup.py +++ b/backup/test_backup.py @@ -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'