summaryrefslogtreecommitdiff
path: root/src/util/test_helper_eddsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_helper_eddsa.c')
-rw-r--r--src/util/test_helper_eddsa.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/util/test_helper_eddsa.c b/src/util/test_helper_eddsa.c
index aac855854..4b44f6041 100644
--- a/src/util/test_helper_eddsa.c
+++ b/src/util/test_helper_eddsa.c
@@ -332,15 +332,27 @@ run_test (void)
GNUNET_break (0);
return 77;
}
- esh = TALER_CRYPTO_helper_esign_connect (cfg,
- &key_cb,
- NULL);
+
+ /* wait for helper to start and give us keys */
+ fprintf (stderr, "Waiting for helper client directory to become available ");
+ for (unsigned int i = 0; i<1000; i++)
+ {
+ esh = TALER_CRYPTO_helper_esign_connect (cfg,
+ &key_cb,
+ NULL);
+ if (NULL != esh)
+ break;
+ nanosleep (&req, NULL);
+ fprintf (stderr, ".");
+ }
GNUNET_CONFIGURATION_destroy (cfg);
if (NULL == esh)
{
GNUNET_break (0);
return 1;
}
+ fprintf (stderr, " done.\n");
+
/* wait for helper to start and give us keys */
fprintf (stderr, "Waiting for helper to start ");
for (unsigned int i = 0; i<1000; i++)