aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_bank_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-10-12 22:10:00 +0200
committerChristian Grothoff <grothoff@gnunet.org>2023-10-12 22:10:00 +0200
commit0cd18a0f8f2545eb1212c504683a8a70007caa48 (patch)
treeb0b484085308961f44622c319209792589c21543 /src/testing/test_bank_api.c
parent5b1fc2a9765465cf374b2feb7419a0e5200e4411 (diff)
downloadexchange-0cd18a0f8f2545eb1212c504683a8a70007caa48.tar.xz
clean up bank API, get test_bank_api_with_nexus to finally pass
Diffstat (limited to 'src/testing/test_bank_api.c')
-rw-r--r--src/testing/test_bank_api.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/testing/test_bank_api.c b/src/testing/test_bank_api.c
index 8477ef9ba..0dea6026d 100644
--- a/src/testing/test_bank_api.c
+++ b/src/testing/test_bank_api.c
@@ -112,8 +112,6 @@ run (void *cls,
cred.user42_payto,
"credit-1",
-1),
- TALER_TESTING_cmd_sleep ("Waiting 4s for 'credit-1' to settle",
- 4),
/**
* Check that the incoming payment with a duplicate
* reserve public key didn't make it to the exchange.
@@ -137,18 +135,6 @@ run (void *cls,
cred.user42_payto,
&wtid,
"http://exchange.example.com/"),
-
- TALER_TESTING_cmd_sleep ("Waiting 5s for 'debit-1' to settle",
- 5),
- (bs == TALER_TESTING_BS_IBAN)
- ? TALER_TESTING_cmd_nexus_fetch_transactions (
- "fetch-transactions-at-nexus",
- "exchange", /* from taler-nexus-prepare */
- "x", /* from taler-nexus-prepare */
- "http://localhost:8082",
- "exchange-nexus") /* from taler-nexus-prepare */
- : TALER_TESTING_cmd_sleep ("nop",
- 0),
TALER_TESTING_cmd_bank_debits ("history-2b",
&cred.ba,
NULL,
@@ -181,6 +167,15 @@ main (int argc,
{
bs = TALER_TESTING_BS_IBAN;
cfgfile = CONFIG_FILE_NEXUS;
+ if (GNUNET_SYSERR ==
+ GNUNET_OS_check_helper_binary ("libeufin-bank",
+ false,
+ NULL))
+ {
+ fprintf (stderr,
+ "libeufin-bank not found. Skipping test.\n");
+ return 77;
+ }
}
else
{