taler-typescript-core

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

commit 8f4319183afb2430e4f5c45562e372422ea5c928
parent 7bc1ad4ff3584dd7d48b408250d7644d7da9f062
Author: Florian Dold <florian@dold.me>
Date:   Tue, 23 Jun 2026 20:23:32 +0200

harness: no more prospective balance

Diffstat:
Mpackages/taler-harness/src/integrationtests/test-balance-prospective.ts | 43+++++++++++++++----------------------------
1 file changed, 15 insertions(+), 28 deletions(-)

diff --git a/packages/taler-harness/src/integrationtests/test-balance-prospective.ts b/packages/taler-harness/src/integrationtests/test-balance-prospective.ts @@ -18,6 +18,7 @@ * Imports. */ import { + j2s, TransactionMajorState, TransactionMinorState, } from "@gnu-taler/taler-util"; @@ -33,6 +34,10 @@ import { GlobalTestState } from "../harness/harness.js"; * Test handling of the prospective coin selection in balances, * i.e. coin selections where the funds we're using are * still waiting to be refreshed. + * + * This feature is not supported by the wallet anymore, + * so the current version of this test checks for exactly + * that. */ export async function runBalanceProspectiveTest(t: GlobalTestState) { // Set up test environment @@ -89,37 +94,19 @@ export async function runBalanceProspectiveTest(t: GlobalTestState) { }); { - // This should succeed based on a prospective balance - const p2 = await walletClient.call( - WalletApiOperation.InitiatePeerPushDebit, - { - partialContractTerms: { - amount: "TESTKUDOS:4", - summary: "test", + const errRes = t.assertThrowsTalerErrorAsync(async () => { + const p2 = await walletClient.call( + WalletApiOperation.InitiatePeerPushDebit, + { + partialContractTerms: { + amount: "TESTKUDOS:4", + summary: "test", + }, }, - }, - ); - - await walletClient.call(WalletApiOperation.TestingWaitTransactionState, { - transactionId: p2.transactionId, - txState: { - major: TransactionMajorState.Pending, - minor: TransactionMinorState.CreatePurse, - }, - requireError: true, + ); }); - } - { - // No more prospective balance, this should fail - await t.assertThrowsTalerErrorAsync(async () => { - await walletClient.call(WalletApiOperation.InitiatePeerPushDebit, { - partialContractTerms: { - amount: "TESTKUDOS:4", - summary: "test", - }, - }); - }); + console.log(j2s(errRes)); } }