summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_helpers_bank.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_helpers_bank.c')
-rw-r--r--src/testing/testing_api_helpers_bank.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testing/testing_api_helpers_bank.c b/src/testing/testing_api_helpers_bank.c
index b0d736fe7..16073554c 100644
--- a/src/testing/testing_api_helpers_bank.c
+++ b/src/testing/testing_api_helpers_bank.c
@@ -106,7 +106,6 @@ TALER_TESTING_has_in_name (const char *prog,
* bank" function to do such tasks. This function is also
* responsible to create the exchange user at Nexus.
*
- * @param config_filename configuration filename. Used to
* @return the process, or NULL if the process could not
* be started.
*/
@@ -117,10 +116,6 @@ TALER_TESTING_run_nexus (const struct TALER_TESTING_BankConfiguration *bc)
unsigned int iter;
char *curl_check_cmd;
- /* make the 'admin' user at nexus; note: this is the user
- under which the exchange will request the services. */
- system ("nexus superuser admin --password x");
-
bank_proc = GNUNET_OS_start_process
(GNUNET_NO,
GNUNET_OS_INHERIT_STD_NONE,
@@ -160,11 +155,16 @@ TALER_TESTING_run_nexus (const struct TALER_TESTING_BankConfiguration *bc)
iter++;
}
while (0 != system (curl_check_cmd));
-
-
GNUNET_free (curl_check_cmd);
fprintf (stderr, "\n");
-
+ // Creates nexus user + bank loopback connection + Taler facade.
+ if (0 != system ("taler-nexus-prepare"))
+ {
+ GNUNET_OS_process_kill (bank_proc, SIGTERM);
+ GNUNET_OS_process_wait (bank_proc);
+ GNUNET_OS_process_destroy (bank_proc);
+ BANK_FAIL ();
+ }
return bank_proc;
}