Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pytest: fix flake in test_pay_disconnect
Channel can be inactive before it disconnects, apparently. Check explicitly for the disconnected state so we get the expected error. Here's what happened: ``` # Can't pay while its offline. with pytest.raises(RpcError, match=r'failed: WIRE_TEMPORARY_CHANNEL_FAILURE \(First peer not ready\)'): > l1.rpc.sendpay(route, rhash) E Failed: DID NOT RAISE <class 'pyln.client.lightning.RpcError'> ``` And the logs show that the outgoing HTLC was sent to channeld before it realized the connection was closed. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
- Loading branch information