gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: -fix checks


From: gnunet
Subject: [taler-anastasis] branch master updated: -fix checks
Date: Fri, 13 Dec 2024 15:46:55 +0100

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

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 9b4e116  -fix checks
9b4e116 is described below

commit 9b4e116d4d655088bbdff187c9c13ab22fe7b724
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Dec 13 15:46:52 2024 +0100

    -fix checks
---
 src/reducer/anastasis_api_backup_redux.c |  2 +-
 src/testing/test_anastasis_api.conf      |  1 +
 src/testing/testing_cmd_recover_secret.c | 34 +++++++++++++++-----------------
 src/testing/testing_cmd_truth_upload.c   | 34 +++++++++++++++-----------------
 4 files changed, 34 insertions(+), 37 deletions(-)

diff --git a/src/reducer/anastasis_api_backup_redux.c 
b/src/reducer/anastasis_api_backup_redux.c
index 8107b9a..0e24187 100644
--- a/src/reducer/anastasis_api_backup_redux.c
+++ b/src/reducer/anastasis_api_backup_redux.c
@@ -206,7 +206,7 @@ ANASTASIS_backup_start (const struct 
GNUNET_CONFIGURATION_Handle *cfg)
       GNUNET_assert (0);
     }
 
-    GNUENT_assert (0 ==
+    GNUNET_assert (0 ==
                    close (pipefd_stdout[1]));
     reducer_stdout = fdopen (pipefd_stdout[0],
                              "r");
diff --git a/src/testing/test_anastasis_api.conf 
b/src/testing/test_anastasis_api.conf
index f3746d1..f202094 100644
--- a/src/testing/test_anastasis_api.conf
+++ b/src/testing/test_anastasis_api.conf
@@ -34,6 +34,7 @@ PORT = 8082
 [anastasis]
 PORT = 8086
 DB = postgres
+CURRENCY = EUR
 BUSINESS_NAME = "Checker's Test Inc."
 UPLOAD_LIMIT_MB = 1
 ANNUAL_POLICY_UPLOAD_LIMIT = 64
diff --git a/src/testing/testing_cmd_recover_secret.c 
b/src/testing/testing_cmd_recover_secret.c
index 1f3e832..8338c71 100644
--- a/src/testing/testing_cmd_recover_secret.c
+++ b/src/testing/testing_cmd_recover_secret.c
@@ -192,25 +192,23 @@ recover_secret_run (void *cls,
   const struct ANASTASIS_CRYPTO_ProviderSaltP *provider_salt;
   rss->is = is;
 
-  if (NULL != rss->download_reference)
+  GNUNET_assert (NULL != rss->download_reference);
+  ref = TALER_TESTING_interpreter_lookup_command (
+    is,
+    rss->download_reference);
+  if (NULL == ref)
   {
-    ref = TALER_TESTING_interpreter_lookup_command (
-      is,
-      rss->download_reference);
-    if (NULL == ref)
-    {
-      GNUNET_break (0);
-      TALER_TESTING_interpreter_fail (rss->is);
-      return;
-    }
-    if (GNUNET_OK !=
-        ANASTASIS_TESTING_get_trait_provider_salt (ref,
-                                                   &provider_salt))
-    {
-      GNUNET_break (0);
-      TALER_TESTING_interpreter_fail (rss->is);
-      return;
-    }
+    GNUNET_break (0);
+    TALER_TESTING_interpreter_fail (rss->is);
+    return;
+  }
+  if (GNUNET_OK !=
+      ANASTASIS_TESTING_get_trait_provider_salt (ref,
+                                                 &provider_salt))
+  {
+    GNUNET_break (0);
+    TALER_TESTING_interpreter_fail (rss->is);
+    return;
   }
   if (NULL != rss->core_secret_reference)
   {
diff --git a/src/testing/testing_cmd_truth_upload.c 
b/src/testing/testing_cmd_truth_upload.c
index 2e3523b..146b6a4 100644
--- a/src/testing/testing_cmd_truth_upload.c
+++ b/src/testing/testing_cmd_truth_upload.c
@@ -185,25 +185,23 @@ truth_upload_run (void *cls,
   struct ANASTASIS_CRYPTO_UserIdentifierP user_id;
 
   tus->is = is;
-  if (NULL != tus->salt_reference)
+  GNUNET_assert (NULL != tus->salt_reference);
+  ref = TALER_TESTING_interpreter_lookup_command (
+    is,
+    tus->salt_reference);
+  if (NULL == ref)
   {
-    ref = TALER_TESTING_interpreter_lookup_command (
-      is,
-      tus->salt_reference);
-    if (NULL == ref)
-    {
-      GNUNET_break (0);
-      TALER_TESTING_interpreter_fail (tus->is);
-      return;
-    }
-    if (GNUNET_OK !=
-        ANASTASIS_TESTING_get_trait_provider_salt (ref,
-                                                   &provider_salt))
-    {
-      GNUNET_break (0);
-      TALER_TESTING_interpreter_fail (tus->is);
-      return;
-    }
+    GNUNET_break (0);
+    TALER_TESTING_interpreter_fail (tus->is);
+    return;
+  }
+  if (GNUNET_OK !=
+      ANASTASIS_TESTING_get_trait_provider_salt (ref,
+                                                 &provider_salt))
+  {
+    GNUNET_break (0);
+    TALER_TESTING_interpreter_fail (tus->is);
+    return;
   }
   ANASTASIS_CRYPTO_user_identifier_derive (tus->id_data,
                                            provider_salt,

-- 
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]