diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-12-30 15:00:03 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-12-30 15:00:03 +0100 |
commit | 4b9062c3a7d38c41ba970e630e759a899b171e71 (patch) | |
tree | 792bdebeda702491e50049d67e16c5b963e6ee6b /src | |
parent | 73fdf47728e26d8625a85441b8523bca0176868f (diff) |
-fix template issue on insert
Diffstat (limited to 'src')
-rw-r--r-- | src/testing/testing_api_cmd_post_templates.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/testing/testing_api_cmd_post_templates.c b/src/testing/testing_api_cmd_post_templates.c index c80e00cf..b7b79b5b 100644 --- a/src/testing/testing_api_cmd_post_templates.c +++ b/src/testing/testing_api_cmd_post_templates.c @@ -144,7 +144,12 @@ post_templates_run (void *cls, tis->template_contract, &post_templates_cb, tis); - GNUNET_assert (NULL != tis->iph); + if (NULL == tis->iph) + { + GNUNET_break (0); + TALER_TESTING_interpreter_fail (tis->is); + return; + } } @@ -255,7 +260,10 @@ TALER_TESTING_cmd_merchant_post_templates (const char *label, template_id, template_description, NULL, - json_pack ("{s:s}", "merchant", "Pay"), + GNUNET_JSON_PACK ( + GNUNET_JSON_pack_uint64 ("minimum_age", 0), + GNUNET_JSON_pack_time_rel ("pay_duration", + GNUNET_TIME_UNIT_MINUTES)), http_status); } |