aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/testing/testing_api_cmd_forget_order.c7
-rw-r--r--src/testing/testing_api_cmd_post_templates.c9
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
index 9dc3b1b4..76d2427b 100644
--- 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
index 8c8cd8ca..0ff0d11a 100644
--- 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)