From be8006a4fc100a886ced2beeb1fa3f7c07e03fa4 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 17 Jan 2019 12:37:31 +1030 Subject: [PATCH] common/test/run-param: fix parsing test. Wasn't using valid JSON, but worked anyway. This is actually OK because we don't rely on tok->size, but we want to, so another fix coming. Signed-off-by: Rusty Russell --- common/test/run-param.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/test/run-param.c b/common/test/run-param.c index 340e9c16e..7e67100d4 100644 --- a/common/test/run-param.c +++ b/common/test/run-param.c @@ -183,7 +183,7 @@ static void tok_tok(void) { unsigned int n; const jsmntok_t *tok = NULL; - struct json *j = json_parse(cmd, "{ 'satoshi', '546' }"); + struct json *j = json_parse(cmd, "{ 'satoshi': '546' }"); assert(param(cmd, j->buffer, j->toks, p_req("satoshi", param_tok, &tok), NULL));