diff options
Diffstat (limited to 'src/testing/testing_api_cmd_kyc_get.c')
-rw-r--r-- | src/testing/testing_api_cmd_kyc_get.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/testing/testing_api_cmd_kyc_get.c b/src/testing/testing_api_cmd_kyc_get.c index 32378177..0d7a405e 100644 --- a/src/testing/testing_api_cmd_kyc_get.c +++ b/src/testing/testing_api_cmd_kyc_get.c @@ -83,7 +83,7 @@ struct KycGetState */ static void kyc_get_cleanup (void *cls, - const struct TALER_TESTING_Command *cmd) + const struct TALER_TESTING_Command *cmd) { struct KycGetState *cs = cls; @@ -109,8 +109,12 @@ kyc_get_cb (void *cls, struct KycGetState *cs = cls; cs->kgh = NULL; - if (kr->hr.exchange_http_status != cs->expected_http_status) + if (kr->hr.http_status != cs->expected_http_status) { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Expected status %u, got %u\n", + cs->expected_http_status, + kr->hr.http_status); TALER_TESTING_FAIL (cs->is); } TALER_TESTING_interpreter_next (cs->is); @@ -126,8 +130,8 @@ kyc_get_cb (void *cls, */ static void kyc_get_run (void *cls, - const struct TALER_TESTING_Command *cmd, - struct TALER_TESTING_Interpreter *is) + const struct TALER_TESTING_Command *cmd, + struct TALER_TESTING_Interpreter *is) { struct KycGetState *cs = cls; const struct TALER_MerchantWireHash *h_wire = NULL; @@ -138,9 +142,9 @@ kyc_get_run (void *cls, const struct TALER_TESTING_Command *wire_cmd; if (NULL == - (wire_cmd = - TALER_TESTING_interpreter_lookup_command (cs->is, - cs->h_wire_ref))) + (wire_cmd = + TALER_TESTING_interpreter_lookup_command (cs->is, + cs->h_wire_ref))) { GNUNET_break (0); TALER_TESTING_FAIL (cs->is); |