summaryrefslogtreecommitdiff
path: root/src/bank-lib/test_bank_api_with_fakebank_twisted.c
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-10 20:49:59 +0000
committerng0 <ng0@n0.is>2019-04-10 20:51:36 +0000
commit71acaff203586a956c71f0e90317d5fff0a50e14 (patch)
treefa2abb2a5b48894783da859e74c1966772be3ddf /src/bank-lib/test_bank_api_with_fakebank_twisted.c
parent2699155b81f8db564e27610896eb2af0c3e88c6d (diff)
parenta73e1dd4198bd7fe83e6e00ee01fe5a83bbaa41d (diff)
downloadexchange-71acaff203586a956c71f0e90317d5fff0a50e14.tar.gz
exchange-71acaff203586a956c71f0e90317d5fff0a50e14.tar.bz2
exchange-71acaff203586a956c71f0e90317d5fff0a50e14.zip
Merge branch 'master' of git.taler.net:exchange
Diffstat (limited to 'src/bank-lib/test_bank_api_with_fakebank_twisted.c')
-rw-r--r--src/bank-lib/test_bank_api_with_fakebank_twisted.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/bank-lib/test_bank_api_with_fakebank_twisted.c b/src/bank-lib/test_bank_api_with_fakebank_twisted.c
index ca9d42f91..4cf500fbe 100644
--- a/src/bank-lib/test_bank_api_with_fakebank_twisted.c
+++ b/src/bank-lib/test_bank_api_with_fakebank_twisted.c
@@ -75,18 +75,23 @@ static void
run (void *cls,
struct TALER_TESTING_Interpreter *is)
{
+
struct TALER_TESTING_Command commands[] = {
+
+ /**
+ * Can't use the "wait service" CMD here because the
+ * fakebank runs inside the same process of the test.
+ */
+ TALER_TESTING_cmd_sleep ("wait interface",
+ 2),
+
TALER_TESTING_cmd_bank_history ("history-0",
- fakebank_url,
+ TWISTED_BANK_URL,
EXCHANGE_ACCOUNT_NUMBER,
TALER_BANK_DIRECTION_BOTH,
GNUNET_NO,
NULL,
5),
- /**
- * End the suite. Fixme: better to have a label for this
- * too, as it shows a "(null)" token on logs.
- */
TALER_TESTING_cmd_end ()
};
@@ -120,8 +125,9 @@ main (int argc,
unsetenv ("XDG_DATA_HOME");
unsetenv ("XDG_CONFIG_HOME");
- GNUNET_log_setup ("test-bank-api-twisted",
- "DEBUG", NULL);
+ GNUNET_log_setup ("test-bank-api-with-fakebank-twisted",
+ "DEBUG",
+ NULL);
if (NULL == (fakebank_url = TALER_TESTING_prepare_fakebank
(CONFIG_FILE,