summaryrefslogtreecommitdiff
path: root/src/mint-lib/test_mint_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-08-09 18:11:30 +0200
committerChristian Grothoff <christian@grothoff.org>2015-08-09 18:11:30 +0200
commit2cccc2a17336da8417ecaa4dabb1f99ee6dd99a1 (patch)
treecca8bda9d6cfb422904fb746ec82fe4e97c8b9cd /src/mint-lib/test_mint_api.c
parente6ff049c203a8a5ab0d14a44bca3e2aae356d786 (diff)
downloadexchange-2cccc2a17336da8417ecaa4dabb1f99ee6dd99a1.tar.gz
exchange-2cccc2a17336da8417ecaa4dabb1f99ee6dd99a1.tar.bz2
exchange-2cccc2a17336da8417ecaa4dabb1f99ee6dd99a1.zip
fix #3934
Diffstat (limited to 'src/mint-lib/test_mint_api.c')
-rw-r--r--src/mint-lib/test_mint_api.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mint-lib/test_mint_api.c b/src/mint-lib/test_mint_api.c
index 2ef35f195..4881a3b15 100644
--- a/src/mint-lib/test_mint_api.c
+++ b/src/mint-lib/test_mint_api.c
@@ -1875,6 +1875,7 @@ run (void *cls,
.expected_response_code = MHD_HTTP_PAYMENT_REQUIRED,
.details.withdraw_sign.reserve_reference = "create-reserve-1",
.details.withdraw_sign.amount = "EUR:5" },
+
/* Try to double-spend the 5 EUR coin with different wire details */
{ .oc = OC_DEPOSIT,
.label = "deposit-double-1",
@@ -2039,7 +2040,14 @@ main (int argc,
"-d", "test-mint-home",
NULL);
/* give child time to start and bind against the socket */
- sleep (2);
+ fprintf (stderr, "Waiting for taler-mint-httpd to be ready");
+ do
+ {
+ fprintf (stderr, ".");
+ sleep (1);
+ }
+ while (0 != system ("wget -q -t 1 http://localhost:8081/agpl -o /dev/null"));
+ fprintf (stderr, "\n");
result = GNUNET_SYSERR;
GNUNET_SCHEDULER_run (&run, NULL);
GNUNET_OS_process_kill (mintd,