diff options
author | Florian Dold <florian@dold.me> | 2021-07-30 18:37:54 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-07-30 18:37:54 +0200 |
commit | bfebdae8380456dd0392cd13b919d43d8e8f48be (patch) | |
tree | a73191eb191e7b7971cd0401fc44beef8aa8ec1e /src/util/test_helper_rsa.c | |
parent | 2bdc2f61c526bdb8b7b1bc7e6df1dbd52ac3761a (diff) | |
download | exchange-bfebdae8380456dd0392cd13b919d43d8e8f48be.tar.xz |
fix secmod helper config, wait for client directory
Diffstat (limited to 'src/util/test_helper_rsa.c')
-rw-r--r-- | src/util/test_helper_rsa.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/util/test_helper_rsa.c b/src/util/test_helper_rsa.c index 96b88c345..4a9fa9058 100644 --- a/src/util/test_helper_rsa.c +++ b/src/util/test_helper_rsa.c @@ -471,15 +471,26 @@ run_test (void) GNUNET_break (0); return 77; } - dh = TALER_CRYPTO_helper_denom_connect (cfg, - &key_cb, - NULL); + + fprintf (stderr, "Waiting for helper client directory to become available "); + for (unsigned int i = 0; i<1000; i++) + { + dh = TALER_CRYPTO_helper_denom_connect (cfg, + &key_cb, + NULL); + if (NULL != dh) + break; + nanosleep (&req, NULL); + fprintf (stderr, "."); + } GNUNET_CONFIGURATION_destroy (cfg); if (NULL == dh) { 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++) |