diff options
-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); } |