From 2d897be10a45760c501cd5b58d84741cfd0e0980 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 7 Oct 2020 14:37:58 +1030 Subject: [PATCH] pytest: fix experimental test. Broken back in 3b8c0a7397cc0694117dfe63ecb2bff0b6957a4b which changed the behavior of funding not to mark as immediately spent. Signed-off-by: Rusty Russell --- tests/test_wallet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_wallet.py b/tests/test_wallet.py index e9eedbc64..6e0b3be91 100644 --- a/tests/test_wallet.py +++ b/tests/test_wallet.py @@ -912,8 +912,10 @@ def test_transaction_annotations(node_factory, bitcoind): l1.connect(l2) fundingtx = l1.rpc.fundchannel(l2.info['id'], 10**5) - # We should have one output available, and it should be unconfirmed + # We should have one output unreserved, and it should be unconfirmed outputs = l1.rpc.listfunds()['outputs'] + assert len(outputs) == 2 + outputs = [o for o in outputs if not o['reserved']] assert(len(outputs) == 1 and outputs[0]['status'] == 'unconfirmed') # It should also match the funding txid: