From a41161d1630a5bd02dfb9aff7b8452045e6206b1 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 10 Jan 2025 14:02:12 +0100 Subject: [PATCH] tests: Add a quick check that `newaddr` works correctly --- libs/gl-testing/tests/test_grpc_web.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/gl-testing/tests/test_grpc_web.py b/libs/gl-testing/tests/test_grpc_web.py index be37a3550..ce9c1e936 100644 --- a/libs/gl-testing/tests/test_grpc_web.py +++ b/libs/gl-testing/tests/test_grpc_web.py @@ -47,6 +47,7 @@ def test_node_grpc_web(scheduler, node_grpc_web_proxy, clients): c = clients.new() c.register(configure=True) n = c.node() + _s = c.signer().run_in_thread() info = n.get_info() # Now extract the TLS certificates, so we can sign the payload. @@ -62,3 +63,8 @@ def test_node_grpc_web(scheduler, node_grpc_web_proxy, clients): req = clnpb.GetinfoRequest() info = web_client.call("Getinfo", req) print(info) + + # Ask for a new address + req = clnpb.NewaddrRequest() + addr = web_client.call("NewAddr", req) + print(addr)