backup: Perform preflight checks before entering the plugin loop

This commit is contained in:
Christian Decker
2020-05-15 21:03:22 +02:00
parent fbc494ec23
commit a1f005012a
2 changed files with 27 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ def test_start_no_init(nf, directory):
options=opts, cleandir=False, may_fail=True, start=False
)
with pytest.raises((RpcError, ConnectionRefusedError, ConnectionResetError)):
with pytest.raises(ValueError):
# The way we detect a failure to start is when we attempt to connect
# to the RPC.
l1.start()