gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: avoid crashing, fail test instea


From: gnunet
Subject: [taler-exchange] branch master updated: avoid crashing, fail test instead
Date: Mon, 10 Apr 2023 13:51:39 +0200

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 122c9264 avoid crashing, fail test instead
122c9264 is described below

commit 122c926493f2a22820f280fd2546e495e6b5874d
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Apr 10 13:51:36 2023 +0200

    avoid crashing, fail test instead
---
 src/testing/testing_api_cmd_take_aml_decision.c | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/src/testing/testing_api_cmd_take_aml_decision.c 
b/src/testing/testing_api_cmd_take_aml_decision.c
index 871cdb71..21ba9af6 100644
--- a/src/testing/testing_api_cmd_take_aml_decision.c
+++ b/src/testing/testing_api_cmd_take_aml_decision.c
@@ -151,9 +151,14 @@ take_aml_decision_run (void *cls,
     TALER_TESTING_interpreter_fail (is);
     return;
   }
-  GNUNET_assert (GNUNET_OK ==
-                 TALER_TESTING_get_trait_h_payto (ref,
-                                                  &h_payto));
+  if (GNUNET_OK !=
+      TALER_TESTING_get_trait_h_payto (ref,
+                                       &h_payto))
+  {
+    GNUNET_break (0);
+    TALER_TESTING_interpreter_fail (is);
+    return;
+  }
   ref = TALER_TESTING_interpreter_lookup_command (is,
                                                   ds->officer_ref_cmd);
   if (NULL == ref)
@@ -162,9 +167,14 @@ take_aml_decision_run (void *cls,
     TALER_TESTING_interpreter_fail (is);
     return;
   }
-  GNUNET_assert (GNUNET_OK ==
-                 TALER_TESTING_get_trait_officer_priv (ref,
-                                                       &officer_priv));
+  if (GNUNET_OK !=
+      TALER_TESTING_get_trait_officer_priv (ref,
+                                            &officer_priv))
+  {
+    GNUNET_break (0);
+    TALER_TESTING_interpreter_fail (is);
+    return;
+  }
   ds->h_payto = *h_payto;
   if (NULL != ds->kyc_requirement)
   {

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