Need to "tick" before asking transactions to libeufin.

This commit is contained in:
MS 2021-09-01 11:45:47 +02:00
parent 812c7e7708
commit 1ca5677f8d
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
2 changed files with 6 additions and 4 deletions

View File

@ -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);
}

View File

@ -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 = {