summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_post_orders.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-18 11:40:39 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-18 11:40:39 +0100
commitd99be82b37fc00dec9b16822e815216c979d70cd (patch)
tree59531ed6ae9671d3c87d937883e22c5d67bc5619 /src/testing/testing_api_cmd_post_orders.c
parentd2c40f4e19350efe134aab9be0f8be8f6a5d7bf8 (diff)
downloadmerchant-d99be82b37fc00dec9b16822e815216c979d70cd.tar.gz
merchant-d99be82b37fc00dec9b16822e815216c979d70cd.tar.bz2
merchant-d99be82b37fc00dec9b16822e815216c979d70cd.zip
only log things as ERROR that are actually ERRORs
Diffstat (limited to 'src/testing/testing_api_cmd_post_orders.c')
-rw-r--r--src/testing/testing_api_cmd_post_orders.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testing/testing_api_cmd_post_orders.c b/src/testing/testing_api_cmd_post_orders.c
index 8ccfb005..4cbb17b0 100644
--- a/src/testing/testing_api_cmd_post_orders.c
+++ b/src/testing/testing_api_cmd_post_orders.c
@@ -286,7 +286,7 @@ order_cb (void *cls,
const struct TALER_TESTING_Command *order_cmd;
const struct TALER_ClaimTokenP *prev_token;
struct TALER_ClaimTokenP zero_token = {0};
-
+
order_cmd = TALER_TESTING_interpreter_lookup_command (
ps->is,
ps->duplicate_of);
@@ -312,6 +312,9 @@ order_cb (void *cls,
}
}
break;
+ case MHD_HTTP_NOT_FOUND:
+ TALER_TESTING_interpreter_next (ps->is);
+ return;
case MHD_HTTP_GONE:
TALER_TESTING_interpreter_next (ps->is);
return;
@@ -385,7 +388,7 @@ orders_run (void *cls,
}
if (NULL == json_object_get (order,
- "order_id"))
+ "order_id"))
{
struct GNUNET_TIME_Absolute now;
char *order_id;