diff options
author | Florian Dold <florian@dold.me> | 2023-09-24 21:03:22 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-09-24 21:03:22 +0200 |
commit | 7b93938e710c8673ae9a0381b8867705ae872d6f (patch) | |
tree | 8aca0b1e5208497dc20e73355a192e9ad22b0baf /packages/taler-wallet-core/src/wallet.ts | |
parent | bdd906c88707b2ec8d6d1d4afbd0bba8e3a9a3cd (diff) | |
download | wallet-core-7b93938e710c8673ae9a0381b8867705ae872d6f.tar.xz |
harness: add libeufin-bank integration testv0.9.3-dev.23
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 75f1a33a9..ccc7ec094 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -127,6 +127,7 @@ import { codecForRecoverStoredBackupRequest, codecForTestingSetTimetravelRequest, setDangerousTimetravel, + TestingWaitTransactionRequest, } from "@gnu-taler/taler-util"; import type { HttpRequestLibrary } from "@gnu-taler/taler-util/http"; import { readSuccessResponseJsonOrThrow } from "@gnu-taler/taler-util/http"; @@ -250,6 +251,7 @@ import { runIntegrationTest, runIntegrationTest2, testPay, + waitTransactionState, waitUntilDone, waitUntilRefreshesDone, withdrawTestBalance, @@ -1414,6 +1416,11 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( const resp = await getBackupRecovery(ws); return resp; } + case WalletApiOperation.TestingWaitTransactionState: { + const req = payload as TestingWaitTransactionRequest; + await waitTransactionState(ws, req.transactionId, req.txState); + return {}; + } case WalletApiOperation.GetScopedCurrencyInfo: { // Ignore result, just validate in this mock implementation codecForGetCurrencyInfoRequest().decode(payload); |