diff options
author | priscilla <priscilla.huang@efrei.net> | 2023-01-12 09:09:15 -0500 |
---|---|---|
committer | priscilla <priscilla.huang@efrei.net> | 2023-01-12 09:09:46 -0500 |
commit | c959961a22806d2fcb39d34d6a424950e76cc6c6 (patch) | |
tree | ef2a99e9b48697ddfe5af20e8d8535f289cb3db9 /src/testing/testing_api_cmd_post_using_templates.c | |
parent | 12f981e55906711bee23845ef5b690f217c77df3 (diff) |
update test using templates
Diffstat (limited to 'src/testing/testing_api_cmd_post_using_templates.c')
-rw-r--r-- | src/testing/testing_api_cmd_post_using_templates.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testing/testing_api_cmd_post_using_templates.c b/src/testing/testing_api_cmd_post_using_templates.c index 55065e34..1d6db0eb 100644 --- a/src/testing/testing_api_cmd_post_using_templates.c +++ b/src/testing/testing_api_cmd_post_using_templates.c @@ -79,22 +79,22 @@ struct PostUsingTemplatesState */ static void post_using_templates_cb (void *cls, - const struct TALER_MERCHANT_HttpResponse *hr) + const struct TALER_MERCHANT_PostOrdersReply *por) { struct PostUsingTemplatesState *tis = cls; tis->iph = NULL; - if (tis->http_status != hr->http_status) + if (tis->http_status != por->hr.http_status) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Unexpected response code %u (%d) to command %s\n", - hr->http_status, - (int) hr->ec, + por->hr.http_status, + (int) por->hr.ec, TALER_TESTING_interpreter_get_current_label (tis->is)); TALER_TESTING_interpreter_fail (tis->is); return; } - switch (hr->http_status) + switch (por->hr.http_status) { case MHD_HTTP_OK: break; @@ -106,7 +106,7 @@ post_using_templates_cb (void *cls, GNUNET_break (0); GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Unhandled HTTP status %u for POST /templates/$ID.\n", - hr->http_status); + por->hr.http_status); break; } TALER_TESTING_interpreter_next (tis->is); |