Browse Source

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>
pylightning-async
Rusty Russell 6 years ago
committed by Christian Decker
parent
commit
be8006a4fc
  1. 2
      common/test/run-param.c

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

Loading…
Cancel
Save