aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2021-11-01 18:15:47 +0100
committerChristian Grothoff <grothoff@gnunet.org>2021-11-01 18:15:47 +0100
commit8df5fba56a9693dc711df676eaad8cc12a626337 (patch)
tree6cc9997ec1c142302633a70443a0191243718be0 /src/testing
parent22ce5bff77e922bc0f679e7f450a66dc5f27f148 (diff)
-code cleanup
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_api_cmd_bank_admin_add_incoming.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/testing/testing_api_cmd_bank_admin_add_incoming.c b/src/testing/testing_api_cmd_bank_admin_add_incoming.c
index 10114ae7f..58089f429 100644
--- a/src/testing/testing_api_cmd_bank_admin_add_incoming.c
+++ b/src/testing/testing_api_cmd_bank_admin_add_incoming.c
@@ -217,16 +217,15 @@ confirmation_cb (void *cls,
fts->reserve_history.details.in_details.timestamp = timestamp;
fts->reserve_history.details.in_details.wire_reference = serial_id;
fts->aih = NULL;
+ if (http_status != fts->expected_http_status)
+ {
+ GNUNET_break (0);
+ TALER_TESTING_interpreter_fail (is);
+ return;
+ }
switch (http_status)
{
case MHD_HTTP_OK:
- if (fts->expected_http_status !=
- MHD_HTTP_OK)
- {
- GNUNET_break (0);
- TALER_TESTING_interpreter_fail (is);
- return;
- }
fts->serial_id = serial_id;
fts->timestamp = timestamp;
TALER_TESTING_interpreter_next (is);
@@ -246,13 +245,6 @@ confirmation_cb (void *cls,
}
break;
case MHD_HTTP_CONFLICT:
- if (fts->expected_http_status !=
- MHD_HTTP_CONFLICT)
- {
- GNUNET_break (0);
- TALER_TESTING_interpreter_fail (is);
- return;
- }
TALER_TESTING_interpreter_next (is);
return;
default: