Skip to content

Commit

Permalink
common/test/run-param: fix parsing test.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rustyrussell authored and dflate committed Jan 18, 2019
1 parent a5a1550 commit 0653ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/test/run-param.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 0653ce0

Please sign in to comment.