gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] 03/03: fix config for aggregator test


From: gnunet
Subject: [taler-exchange] 03/03: fix config for aggregator test
Date: Wed, 16 Dec 2020 19:58:47 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

commit cd6a3b8de745b2e0b04cd962dcc48a50d254b07c
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Dec 16 19:58:42 2020 +0100

    fix config for aggregator test
---
 src/testing/test-taler-exchange-aggregator-postgres.conf | 13 ++++++++++++-
 src/testing/test_taler_exchange_aggregator.c             | 15 ++-------------
 src/testing/testing_api_helpers_exchange.c               |  6 ++++++
 3 files changed, 20 insertions(+), 14 deletions(-)

diff --git a/src/testing/test-taler-exchange-aggregator-postgres.conf 
b/src/testing/test-taler-exchange-aggregator-postgres.conf
index e188f508..dd03e0c4 100644
--- a/src/testing/test-taler-exchange-aggregator-postgres.conf
+++ b/src/testing/test-taler-exchange-aggregator-postgres.conf
@@ -19,7 +19,7 @@ MASTER_PUBLIC_KEY = 
98NJW3CQHZQGQXTY3K85K531XKPAPAVV4Q5V8PYYRR00NJGZWNVG
 
 # Expected base URL of the exchange.  Used in wire transfers for
 # the tracking API.
-BASE_URL = "https://exchange.taler.net/";
+BASE_URL = "http://localhost:8081/";
 
 SIGNKEY_LEGAL_DURATION = 2 years
 
@@ -98,3 +98,14 @@ CLOSING-FEE-2024 = EUR:0.01
 CLOSING-FEE-2025 = EUR:0.01
 CLOSING-FEE-2026 = EUR:0.01
 CLOSING-FEE-2027 = EUR:0.01
+
+[coin_eur_ct_1]
+value = EUR:0.01
+duration_withdraw = 7 days
+duration_spend = 2 years
+duration_legal = 3 years
+fee_withdraw = EUR:0.00
+fee_deposit = EUR:0.00
+fee_refresh = EUR:0.01
+fee_refund = EUR:0.01
+rsa_keysize = 1024
diff --git a/src/testing/test_taler_exchange_aggregator.c 
b/src/testing/test_taler_exchange_aggregator.c
index 6d057c37..2b3d642e 100644
--- a/src/testing/test_taler_exchange_aggregator.c
+++ b/src/testing/test_taler_exchange_aggregator.c
@@ -475,8 +475,6 @@ run (void *cls,
     TALER_TESTING_cmd_end ()
   };
 
-  GNUNET_SCHEDULER_add_shutdown (&unload_db,
-                                 NULL);
   TALER_TESTING_run_with_fakebank (is,
                                    all,
                                    bc.exchange_auth.wire_gateway_url);
@@ -501,19 +499,10 @@ prepare_database (void *cls,
     TALER_TESTING_interpreter_fail (is);
     return;
   }
-  if (GNUNET_OK !=
-      dbc.plugin->create_tables (dbc.plugin->cls))
-  {
-    GNUNET_break (0);
-    TALER_EXCHANGEDB_plugin_unload (dbc.plugin);
-    dbc.plugin = NULL;
-    result = 77;
-    TALER_TESTING_interpreter_fail (is);
-    return;
-  }
   dbc.session = dbc.plugin->get_session (dbc.plugin->cls);
   GNUNET_assert (NULL != dbc.session);
-
+  GNUNET_SCHEDULER_add_shutdown (&unload_db,
+                                 NULL);
   run (NULL,
        is);
 }
diff --git a/src/testing/testing_api_helpers_exchange.c 
b/src/testing/testing_api_helpers_exchange.c
index 043bf8a0..f3a713af 100644
--- a/src/testing/testing_api_helpers_exchange.c
+++ b/src/testing/testing_api_helpers_exchange.c
@@ -723,6 +723,12 @@ TALER_TESTING_setup_with_exchange_cfg (
   {
     GNUNET_free (base_url);
     stop_helpers (helpers);
+    GNUNET_break (0 ==
+                  GNUNET_OS_process_kill (exchanged,
+                                          SIGTERM));
+    GNUNET_break (GNUNET_OK ==
+                  GNUNET_OS_process_wait (exchanged));
+    GNUNET_OS_process_destroy (exchanged);
     return 77;
   }
   GNUNET_free (base_url);

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