gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: update test using templates


From: gnunet
Subject: [taler-merchant] branch master updated: update test using templates
Date: Thu, 12 Jan 2023 15:09:53 +0100

This is an automated email from the git hooks/post-receive script.

priscilla-huang pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new c959961a update test using templates
c959961a is described below

commit c959961a22806d2fcb39d34d6a424950e76cc6c6
Author: priscilla <priscilla.huang@efrei.net>
AuthorDate: Thu Jan 12 09:09:15 2023 -0500

    update test using templates
---
 src/testing/testing_api_cmd_post_using_templates.c | 12 ++++++------
 1 file 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);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]