Skip to content

Commit

Permalink
fix(tests): sendcustommsg uses positional args only
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Jun 4, 2024
1 parent c8c2066 commit c24ba09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/gl-testing/tests/test_lsps.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_lsps_list_protocol(
json_bytes = json_str.encode("utf-8")
msg_str = "9419" + json_bytes.hex()

n1.rpc.sendcustommsg(node_id=gl1.get_info().id.hex(), msg=msg_str)
n1.rpc.sendcustommsg(gl1.get_info().id.hex(), msg_str)

result = protocol_fut.await_result()
assert result == ProtocolList([1, 2])
Expand Down
2 changes: 1 addition & 1 deletion libs/gl-testing/tests/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def test_custommsg(clients, node_factory, bitcoind, executor):
# notification
import time
time.sleep(1)
l1.rpc.sendcustommsg(node_id=c.node_id.hex(), msg="FFFFDEADBEEF")
l1.rpc.sendcustommsg(c.node_id.hex(), "FFFFDEADBEEF")

res = f.result(1)
assert res.payload == b'\xff\xff\xde\xad\xbe\xef'
Expand Down

0 comments on commit c24ba09

Please sign in to comment.