commit 200aae1502376b78a8ddb98e07f230382070faac
parent b2ddf5b3f84fa8b0db7f7a314212b8379c7cf6d0
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sat, 17 Jan 2026 13:34:08 +0100
fix some tests"
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_post-using-templates.c b/src/backend/taler-merchant-httpd_post-using-templates.c
@@ -449,10 +449,6 @@ parse_using_templates_inventory_request (
{
const json_t *inventory_selection;
struct GNUNET_JSON_Specification spec[] = {
- GNUNET_JSON_spec_mark_optional (
- TALER_JSON_spec_amount_any ("tip",
- &uc->parse_request.tip),
- &uc->parse_request.no_tip),
GNUNET_JSON_spec_array_const ("inventory_selection",
&inventory_selection),
GNUNET_JSON_spec_end ()
@@ -550,6 +546,10 @@ handle_phase_parse_request (
&template_type),
NULL),
GNUNET_JSON_spec_mark_optional (
+ TALER_JSON_spec_amount_any ("tip",
+ &uc->parse_request.tip),
+ &uc->parse_request.no_tip),
+ GNUNET_JSON_spec_mark_optional (
GNUNET_JSON_spec_string ("summary",
&uc->parse_request.summary),
NULL),
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c
@@ -2055,7 +2055,7 @@ run (void *cls,
GNUNET_JSON_pack_array_steal (
"inventory_selection",
json_array ())),
- MHD_HTTP_BAD_REQUEST),
+ MHD_HTTP_CONFLICT),
TALER_TESTING_cmd_merchant_post_using_templates2 (
"using-templates-inv-one-two",
"post-templates-inv-one",