update test_bank_api to match current bank setup methods

This commit is contained in:
Christian Grothoff 2016-03-23 10:04:40 +01:00
parent 6a80c0bfa2
commit 08a051a7c0

View File

@ -517,25 +517,25 @@ main (int argc,
bankd = GNUNET_OS_start_process (GNUNET_NO, bankd = GNUNET_OS_start_process (GNUNET_NO,
GNUNET_OS_INHERIT_STD_ALL, GNUNET_OS_INHERIT_STD_ALL,
NULL, NULL, NULL, NULL, NULL, NULL,
"taler-bank-httpd", "taler-bank-manage",
"taler-bank-httpd", "taler-bank-manage",
"-d", "test-bank-home", "--bareserver", "8081",
NULL); NULL);
if (NULL == bankd) if (NULL == bankd)
{ {
fprintf (stderr, fprintf (stderr,
"taler-bank-httpd not found, skipping test\n"); "taler-bank-manage not found, skipping test\n");
return 77; /* report 'skip' */ return 77; /* report 'skip' */
} }
/* give child time to start and bind against the socket */ /* give child time to start and bind against the socket */
fprintf (stderr, fprintf (stderr,
"Waiting for taler-bank-httpd to be ready"); "Waiting for taler-bank-manage to be ready");
do do
{ {
fprintf (stderr, "."); fprintf (stderr, ".");
sleep (1); sleep (1);
} }
while (0 != system ("wget -q -t 1 -T 1 http://127.0.0.1:8081/keys -o /dev/null -O /dev/null")); while (0 != system ("wget -q -t 1 -T 1 http://127.0.0.1:8081/ -o /dev/null -O /dev/null"));
fprintf (stderr, "\n"); fprintf (stderr, "\n");
result = GNUNET_SYSERR; result = GNUNET_SYSERR;
GNUNET_SCHEDULER_run (&run, NULL); GNUNET_SCHEDULER_run (&run, NULL);