diff options
author | MS <ms@taler.net> | 2021-09-01 11:45:47 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2021-09-01 11:45:47 +0200 |
commit | 1ca5677f8d5793c0e39b3ec2863ef6feabad27cc (patch) | |
tree | 603c65685b4b7a56378ee94ce7eb4c286516ffa7 | |
parent | 812c7e7708c57c4484d553ee02d621d06d34f17b (diff) |
Need to "tick" before asking transactions to libeufin.
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-sandbox-camt.ts | 5 | ||||
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-libeufin-tutorial.ts | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-sandbox-camt.ts b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-sandbox-camt.ts index 99530de2e..3452c965c 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-sandbox-camt.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-sandbox-camt.ts @@ -27,6 +27,9 @@ import { findNexusPayment, } from "./libeufin"; +// This test only checks that LibEuFin doesn't fail when +// it generates Camt statements - no assertions take place. +// Furthermore, it prints the Camt.053 being generated. export async function runLibeufinApiSandboxCamtTest(t: GlobalTestState) { const sandbox = await LibeufinSandboxService.create(t, { @@ -53,7 +56,7 @@ export async function runLibeufinApiSandboxCamtTest(t: GlobalTestState) { await sandbox.makeTransaction("mock-account-0", "mock-account-1", "EUR:1", "+1"); await sandbox.makeTransaction("mock-account-0", "mock-account-1", "EUR:1", "+1"); await sandbox.makeTransaction("mock-account-1", "mock-account-0", "EUR:5", "minus 5"); - + await sandbox.c53tick(); let ret = await LibeufinSandboxApi.getCamt053(sandbox, "mock-account-1"); console.log(ret); } diff --git a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-tutorial.ts b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-tutorial.ts index 707a264f0..eee1b8935 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-tutorial.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-tutorial.ts @@ -101,9 +101,8 @@ export async function runLibeufinTutorialTest(t: GlobalTestState) { }; await libeufinCli.importBankAccount(bankAccountImportDetails); - await libeufinCli.fetchTransactions( - bankAccountImportDetails.nexusBankAccountName, - ); + await libeufinSandbox.c53tick() + await libeufinCli.fetchTransactions(bankAccountImportDetails.nexusBankAccountName); await libeufinCli.transactions(bankAccountImportDetails.nexusBankAccountName); const paymentDetails = { |