gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: -fix template issue on insert


From: gnunet
Subject: [taler-merchant] branch master updated: -fix template issue on insert
Date: Fri, 30 Dec 2022 15:00:05 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 4b9062c3 -fix template issue on insert
4b9062c3 is described below

commit 4b9062c3a7d38c41ba970e630e759a899b171e71
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Dec 30 15:00:03 2022 +0100

    -fix template issue on insert
---
 src/testing/testing_api_cmd_post_templates.c | 12 ++++++++++--
 1 file 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);
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]