From 417c07f3f4866918e1aaa6d42b7d5ec0ca59dd51 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 6 Jan 2023 13:55:08 +0100 Subject: wallet-core: insufficient balance details for p2p payments --- .../src/integrationtests/test-peer-to-peer-push.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'packages/taler-harness/src/integrationtests') diff --git a/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts b/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts index 2a93c3559..eb29a81c2 100644 --- a/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts +++ b/packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts @@ -67,7 +67,6 @@ export async function runPeerToPeerPushTest(t: GlobalTestState) { ); console.log(resp); - } const resp = await wallet1.client.call( WalletApiOperation.InitiatePeerPushPayment, @@ -114,6 +113,21 @@ export async function runPeerToPeerPushTest(t: GlobalTestState) { console.log(`txn1: ${j2s(txn1)}`); console.log(`txn2: ${j2s(txn2)}`); + + const ex1 = await t.assertThrowsTalerErrorAsync(async () => { + await wallet1.client.call( + WalletApiOperation.InitiatePeerPushPayment, + { + partialContractTerms: { + summary: "(this will fail)", + amount: "TESTKUDOS:15", + purse_expiration + }, + }, + ); + }); + + console.log("got expected exception detail", j2s(ex1.errorDetail)); } runPeerToPeerPushTest.suites = ["wallet"]; -- cgit v1.2.3