summaryrefslogtreecommitdiff
path: root/src/exchange-lib
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-11-19 23:02:37 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-11-19 23:02:37 +0100
commit368f3a9a6684dea78381c98ac9d217e9fc85e3b2 (patch)
tree98ada17caa1ac7e052b7afb7901568533ddc9016 /src/exchange-lib
parent423f05970a6f440907763e4c250d169a3f484b3e (diff)
downloadexchange-368f3a9a6684dea78381c98ac9d217e9fc85e3b2.tar.gz
exchange-368f3a9a6684dea78381c98ac9d217e9fc85e3b2.tar.bz2
exchange-368f3a9a6684dea78381c98ac9d217e9fc85e3b2.zip
Minor changes to make tests pass/no-skip again.
Diffstat (limited to 'src/exchange-lib')
-rw-r--r--src/exchange-lib/exchange_api_handle.c2
-rw-r--r--src/exchange-lib/test_exchange_api_twisted.c9
-rw-r--r--src/exchange-lib/test_exchange_api_twisted.conf5
3 files changed, 13 insertions, 3 deletions
diff --git a/src/exchange-lib/exchange_api_handle.c b/src/exchange-lib/exchange_api_handle.c
index d7fa65fad..b131ffcab 100644
--- a/src/exchange-lib/exchange_api_handle.c
+++ b/src/exchange-lib/exchange_api_handle.c
@@ -1481,7 +1481,7 @@ request_keys (void *cls)
kr));
kr->job = GNUNET_CURL_job_add (exchange->ctx,
eh,
- GNUNET_NO,
+ GNUNET_YES,
&keys_completed_cb,
kr);
exchange->kr = kr;
diff --git a/src/exchange-lib/test_exchange_api_twisted.c b/src/exchange-lib/test_exchange_api_twisted.c
index e276fd1a8..9e52c9ea7 100644
--- a/src/exchange-lib/test_exchange_api_twisted.c
+++ b/src/exchange-lib/test_exchange_api_twisted.c
@@ -61,6 +61,11 @@ static char *fakebank_url;
static char *exchange_url;
/**
+ * Auditor URL, unused but needed to achieve compilation.
+ */
+static char *auditor_url;
+
+/**
* Twister process.
*/
static struct GNUNET_OS_Process *twisterd;
@@ -367,6 +372,7 @@ main (int argc,
TALER_TESTING_cleanup_files (CONFIG_FILE);
switch (TALER_TESTING_prepare_exchange (CONFIG_FILE,
+ &auditor_url,
&exchange_url))
{
case GNUNET_SYSERR:
@@ -381,7 +387,8 @@ main (int argc,
(CONFIG_FILE)))
return 77;
- ret = TALER_TESTING_setup_with_exchange (&run, NULL,
+ ret = TALER_TESTING_setup_with_exchange (&run,
+ NULL,
CONFIG_FILE);
purge_process (twisterd);
GNUNET_free (twister_url);
diff --git a/src/exchange-lib/test_exchange_api_twisted.conf b/src/exchange-lib/test_exchange_api_twisted.conf
index 12a07a17e..ba59b5a60 100644
--- a/src/exchange-lib/test_exchange_api_twisted.conf
+++ b/src/exchange-lib/test_exchange_api_twisted.conf
@@ -67,8 +67,11 @@ BASE_URL = "http://localhost:8888/"
[exchangedb-postgres]
DB_CONN_STR = "postgres:///talercheck"
+[auditor]
+BASE_URL = "http://the.auditor/"
+
[auditordb-postgres]
-DB_CONN_STR = "postgres:///talercheck"
+CONFIG = "postgres:///talercheck"
[account-2]
URL = payto://x-taler-bank/localhost:8082/2