summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-13 19:13:36 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-13 19:13:36 +0100
commitdc02821d8f7b5247b6b01bbd70e9a15a5ab87885 (patch)
treeb2e9c3bde0cce6bdbb4f39de5acb80798cabbe6c /src/testing
parente05ce36f301030feaa64c76bbfea24e34e05c496 (diff)
downloadexchange-dc02821d8f7b5247b6b01bbd70e9a15a5ab87885.tar.gz
exchange-dc02821d8f7b5247b6b01bbd70e9a15a5ab87885.tar.bz2
exchange-dc02821d8f7b5247b6b01bbd70e9a15a5ab87885.zip
fix regression introduced by addition of 'revoke' field
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/Makefile.am1
-rw-r--r--src/testing/test_auditor_api_version.c12
-rw-r--r--src/testing/testing_api_cmd_check_keys.c13
3 files changed, 17 insertions, 9 deletions
diff --git a/src/testing/Makefile.am b/src/testing/Makefile.am
index 73f9b9ec..faad3f73 100644
--- a/src/testing/Makefile.am
+++ b/src/testing/Makefile.am
@@ -148,6 +148,7 @@ test_auditor_api_LDADD = \
test_auditor_api_version_SOURCES = \
test_auditor_api_version.c
test_auditor_api_version_LDADD = \
+ libtalertesting.la \
$(top_builddir)/src/lib/libtalerauditor.la \
$(LIBGCRYPT_LIBS) \
$(top_builddir)/src/util/libtalerutil.la \
diff --git a/src/testing/test_auditor_api_version.c b/src/testing/test_auditor_api_version.c
index 62277e82..bf1094e3 100644
--- a/src/testing/test_auditor_api_version.c
+++ b/src/testing/test_auditor_api_version.c
@@ -151,8 +151,16 @@ main (int argc,
" is your PATH correct?\n");
return 77;
}
- GNUNET_SCHEDULER_run (&run,
- NULL);
+ if (0 != TALER_TESTING_wait_auditor_ready ("http://localhost:8083/"))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Failed to launch `taler-auditor-httpd`\n");
+ }
+ else
+ {
+ GNUNET_SCHEDULER_run (&run,
+ NULL);
+ }
GNUNET_OS_process_kill (proc, SIGTERM);
GNUNET_OS_process_wait (proc);
GNUNET_OS_process_destroy (proc);
diff --git a/src/testing/testing_api_cmd_check_keys.c b/src/testing/testing_api_cmd_check_keys.c
index 6e5c694c..397ace56 100644
--- a/src/testing/testing_api_cmd_check_keys.c
+++ b/src/testing/testing_api_cmd_check_keys.c
@@ -69,12 +69,12 @@ struct CheckKeysState
/**
* Value X to set as the URL parameter:
* "/keys?last_denom_issue=X" is used only when `set_last_denom'
- * equals GNUNET_YES.
+ * equals #GNUNET_YES.
*/
struct GNUNET_TIME_Absolute last_denom_date;
/**
- * If GNUNET_YES, then we'll provide the "/keys" request.
+ * If #GNUNET_YES, then we'll provide the "/keys" request.
* with the "now" argument.
*/
int with_now;
@@ -160,11 +160,10 @@ check_keys_run (void *cls,
{
/* Did not get the expected number of denomination keys! */
GNUNET_break (0);
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Got %u keys in step %s, expected %u\n",
- is->keys->num_denom_keys,
- cmd->label,
- cks->num_denom_keys);
+ TALER_LOG_ERROR ("Got %u keys in step %s, expected %u\n",
+ is->keys->num_denom_keys,
+ cmd->label,
+ cks->num_denom_keys);
TALER_TESTING_interpreter_fail (is);
return;
}