From ce3d3d8e5421899bcccc819e8a6ce656cd8930d7 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 4 Oct 2021 19:28:42 +0200 Subject: [PATCH] pytest: Fix `test_onchain_timeout` to use `groupid` --- tests/test_closing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_closing.py b/tests/test_closing.py index 35ae4690d..381153c9d 100644 --- a/tests/test_closing.py +++ b/tests/test_closing.py @@ -1853,7 +1853,7 @@ def test_onchain_timeout(node_factory, bitcoind, executor): 'channel': '1x1x1' } - l1.rpc.sendpay([routestep], rhash, payment_secret=inv['payment_secret']) + l1.rpc.sendpay([routestep], rhash, payment_secret=inv['payment_secret'], groupid=1) with pytest.raises(RpcError): l1.rpc.waitsendpay(rhash) @@ -1862,7 +1862,7 @@ def test_onchain_timeout(node_factory, bitcoind, executor): sync_blockheight(bitcoind, [l1]) # Second one will cause drop to chain. - l1.rpc.sendpay([routestep], rhash, payment_secret=inv['payment_secret']) + l1.rpc.sendpay([routestep], rhash, payment_secret=inv['payment_secret'], groupid=2) payfuture = executor.submit(l1.rpc.waitsendpay, rhash) # l1 will drop to chain.