From 591a51ca6a9d3a52319736374f47e9174444a8ac Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 2 Apr 2022 12:47:05 +1030 Subject: [PATCH] pytest: fix invalid invoice() call. Trips on our RPC checking introduced at the same time: msat should be an integer or an "xxxmsat"/sat/btc string. Signed-off-by: Rusty Russell --- tests/test_pay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pay.py b/tests/test_pay.py index 418c29a03..985e8f181 100644 --- a/tests/test_pay.py +++ b/tests/test_pay.py @@ -5255,7 +5255,7 @@ def test_pay_bolt11_metadata(node_factory, bitcoind): # After CI started failing, I *also* hacked it to set expiry to BIGNUM. inv = "lnbcrt1230n1p3yzgcxsp5q8g040f9rl9mu2unkjuj0vn262s6nyrhz5hythk3ueu2lfzahmzspp5ve584t0cv27hwmy0cx9ca8uwyqyfw9y9dm3r8vus9fv36r2l9yjsdq8v3jhxccmq6w35xjueqd9ejqmt9w3skgct5vyxqxra2q2qcqp99q2sqqqqqysgqfw6efxpzk5x5vfj8se46yg667x5cvhyttnmuqyk0q7rmhx3gs249qhtdggnek8c5adm2pztkjddlwyn2art2zg9xap2ckczzl3fzz4qqsej6mf" # Make l2 "know" about this invoice. - l2.rpc.invoice(msatoshi='123000', label='label1', description='desc', preimage='00' * 32) + l2.rpc.invoice(msatoshi=123000, label='label1', description='desc', preimage='00' * 32) with pytest.raises(RpcError, match=r'WIRE_INVALID_ONION_PAYLOAD'): l1.rpc.pay(inv)