taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit c7ba2cdd8b68970633a89edb1017319caae229b0
parent 8bca68ef723f4cc02f017c23f8cea0bb99a71935
Author: Florian Dold <florian@dold.me>
Date:   Thu, 12 Jun 2025 14:29:36 +0200

harness: use timetravel to make exchange-kyc-auth test terminate

Diffstat:
Mpackages/taler-harness/src/integrationtests/test-exchange-kyc-auth.ts | 28+++++++++++++++++++++++++---
1 file changed, 25 insertions(+), 3 deletions(-)

diff --git a/packages/taler-harness/src/integrationtests/test-exchange-kyc-auth.ts b/packages/taler-harness/src/integrationtests/test-exchange-kyc-auth.ts @@ -320,11 +320,33 @@ export async function runExchangeKycAuthTest(t: GlobalTestState) { await walletClient.call(WalletApiOperation.TestingWaitTransactionState, { transactionId: dep2Resp.transactionId, - txState: { - major: TransactionMajorState.Done, - }, + txState: [ + { + major: TransactionMajorState.Done, + }, + { + major: TransactionMajorState.Finalizing, + minor: TransactionMinorState.Track, + }, + ], timeout: { seconds: 10 }, }); + + await exchange.runAggregatorOnceWithTimetravel({ + timetravelMicroseconds: 10 * 60 * 1000 * 1000, + }); + await exchange.runTransferOnceWithTimetravel({ + timetravelMicroseconds: 10 * 60 * 1000 * 1000, + }); + + await walletClient.call(WalletApiOperation.TestingWaitTransactionState, { + transactionId: dep2Resp.transactionId, + txState: [ + { + major: TransactionMajorState.Done, + }, + ], + }); } runExchangeKycAuthTest.suites = ["wallet"];