commit e7a8f953162c2507e3ad609ca4644a0bba08c51a
parent bb45bac2304bd9e8d4a1482641b098af96472f6f
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sat, 23 Dec 2023 00:08:16 +0800
-nicer logging
Diffstat:
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/src/testing/testing_api_cmd_forget_order.c b/src/testing/testing_api_cmd_forget_order.c
@@ -120,7 +120,12 @@ order_forget_cb (void *cls,
ofs->ofh = NULL;
if (ofs->http_status != hr->http_status)
- TALER_TESTING_FAIL (ofs->is);
+ {
+ TALER_TESTING_unexpected_status (ofs->is,
+ hr->http_status,
+ ofs->http_status);
+ return;
+ }
TALER_TESTING_interpreter_next (ofs->is);
}
diff --git a/src/testing/testing_api_cmd_post_templates.c b/src/testing/testing_api_cmd_post_templates.c
@@ -92,12 +92,9 @@ post_templates_cb (void *cls,
tis->iph = NULL;
if (tis->http_status != hr->http_status)
{
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Unexpected response code %u (%d) to command %s\n",
- hr->http_status,
- (int) hr->ec,
- TALER_TESTING_interpreter_get_current_label (tis->is));
- TALER_TESTING_interpreter_fail (tis->is);
+ TALER_TESTING_unexpected_status (tis->is,
+ hr->http_status,
+ tis->http_status);
return;
}
switch (hr->http_status)