mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 05:44:12 +01:00
pytest: Fix test_onchain_timeout
to use groupid
This commit is contained in:
parent
428982a9e7
commit
ce3d3d8e54
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user