From 09f59c417ba04a153887a7cdf1e284703c9647aa Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Fri, 9 Sep 2022 16:45:57 +0200 Subject: [PATCH] qa: fix the UDS class' forwarding method calls as JSONRPC calls We weren't passing arguments if they were a list! --- tests/test_framework/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_framework/utils.py b/tests/test_framework/utils.py index 863b0be1..9b1805f9 100644 --- a/tests/test_framework/utils.py +++ b/tests/test_framework/utils.py @@ -152,14 +152,12 @@ class UnixDomainSocketRpc(object): We might still want to define the actual methods in the subclasses for documentation purposes. """ - name = name.replace("_", "-") - def wrapper(*args, **kwargs): if len(args) != 0 and len(kwargs) != 0: raise RpcError( name, {}, "Cannot mix positional and non-positional arguments" ) - return self.call(name, params=kwargs) + return self.call(name, params=args or kwargs) return wrapper