diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-11-18 14:41:27 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-11-18 14:41:27 +0100 |
commit | a71756eee2f338f6f4dd3f9ff9632c767dedec20 (patch) | |
tree | 6a9f8dd43e6b5dea007ddaac676f80939c78c1b8 /src/exchange-lib | |
parent | 428ecee396e28247f5a1893c459f89ddf252dfd7 (diff) | |
download | exchange-a71756eee2f338f6f4dd3f9ff9632c767dedec20.tar.xz |
get auditor api test to pass (minimal version)
Diffstat (limited to 'src/exchange-lib')
-rw-r--r-- | src/exchange-lib/testing_api_helpers.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/exchange-lib/testing_api_helpers.c b/src/exchange-lib/testing_api_helpers.c index 2697304d0..e56a57b92 100644 --- a/src/exchange-lib/testing_api_helpers.c +++ b/src/exchange-lib/testing_api_helpers.c @@ -869,6 +869,12 @@ TALER_TESTING_setup_with_auditor_and_exchange_cfg (void *cls, if (0 != TALER_TESTING_wait_auditor_ready (base_url)) { GNUNET_free (base_url); + GNUNET_break (0 == + GNUNET_OS_process_kill (auditord, + SIGTERM)); + GNUNET_break (GNUNET_OK == + GNUNET_OS_process_wait (auditord)); + GNUNET_OS_process_destroy (auditord); return 77; } GNUNET_free (base_url); @@ -911,14 +917,10 @@ TALER_TESTING_setup_with_auditor_and_exchange (TALER_TESTING_Main main_cb, .main_cb = main_cb, .main_cb_cls = main_cb_cls }; - int result; - if (GNUNET_OK != - (result = GNUNET_CONFIGURATION_parse_and_run (config_file, - &TALER_TESTING_setup_with_auditor_and_exchange_cfg, - &setup_ctx))) - return result; - return GNUNET_OK; + return GNUNET_CONFIGURATION_parse_and_run (config_file, + &TALER_TESTING_setup_with_auditor_and_exchange_cfg, + &setup_ctx); } |