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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-01-17 12:37:31 +10:30
committed by Christian Decker
parent 774973263c
commit be8006a4fc

View File

@@ -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));