Skip to content

Commit bc74d44

Browse files
committed
tests: Fix tests broken by TrampolineError migration
Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
1 parent 1adb920 commit bc74d44

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

libs/gl-client-py/tests/test_plugin.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_trampoline_pay(bitcoind, clients, node_factory):
9292

9393
res = n1.trampoline_pay(inv["bolt11"], bytes.fromhex(l2.info["id"]))
9494
assert res
95-
assert len(res.payment_hash) == 32 # There was a confusion about hex/bytes return.
95+
assert len(res.payment_hash) == 32 # There was a confusion about hex/bytes return.
9696

9797
l2.rpc.unsetchecks()
9898

@@ -124,7 +124,8 @@ def test_trampoline_pay(bitcoind, clients, node_factory):
124124

125125
# calling `trampoline_pay` with an unkown tmrp_node_id must fail.
126126
with pytest.raises(
127-
expected_exception=ValueError, match=r"Peer error: No such peer"
127+
expected_exception=ValueError,
128+
match=f"Peer with id {l3.info['id']} is unknown",
128129
):
129130
res = n1.trampoline_pay(inv["bolt11"], bytes.fromhex(l3.info["id"]))
130131

@@ -134,7 +135,7 @@ def test_trampoline_pay(bitcoind, clients, node_factory):
134135
# trampoline payments must fail.
135136
with pytest.raises(
136137
expected_exception=ValueError,
137-
match=r"Features \\\"[a-f0-9]+\\\" do not contain feature bit 427",
138+
match=r"Feature \d+ not supported, peer supports: [a-fA-F0-9]+",
138139
):
139140
res = n1.trampoline_pay(inv["bolt11"], bytes.fromhex(l3.info["id"]))
140141

0 commit comments

Comments
 (0)