Skip to content

Commit 4058d88

Browse files
committed
pytest: fix typo in test_anchorspend_using_to_remote
Presumably we want to wait for htlcs to be all resolved here. With the speedup, this failed under Postgres: ``` > wait_for(lambda: only_one(l2.rpc.listpeerchannels(l3.info['id'])['channels'])['htlcs'] != []) tests/test_closing.py:4191: ``` Signed-off-by: Rusty Russell <[email protected]>
1 parent 2a42125 commit 4058d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_closing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4185,7 +4185,7 @@ def test_anchorspend_using_to_remote(node_factory, bitcoind, anchors):
41854185
node_factory.join_nodes([l1, l2], wait_for_announce=True)
41864186
node_factory.join_nodes([l3, l2], wait_for_announce=True)
41874187
l3.rpc.pay(l2.rpc.invoice(200000000, 'test2', 'test2')['bolt11'])
4188-
wait_for(lambda: only_one(l2.rpc.listpeerchannels(l3.info['id'])['channels'])['htlcs'] != [])
4188+
wait_for(lambda: only_one(l2.rpc.listpeerchannels(l3.info['id'])['channels'])['htlcs'] == [])
41894189

41904190
# Get HTLC stuck, so l2 has reason to push commitment tx.
41914191
amt = 100_000_000

0 commit comments

Comments
 (0)