diff options
author | Florian Dold <florian@dold.me> | 2023-01-06 13:55:08 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-01-06 13:55:08 +0100 |
commit | 417c07f3f4866918e1aaa6d42b7d5ec0ca59dd51 (patch) | |
tree | 9966f647bb0779cf2de248b805f0ea13a24ddba6 /packages/taler-harness/src | |
parent | c2c35925bb953bf07e32c005dbe312d220b45749 (diff) | |
download | wallet-core-417c07f3f4866918e1aaa6d42b7d5ec0ca59dd51.tar.xz |
wallet-core: insufficient balance details for p2p payments
Diffstat (limited to 'packages/taler-harness/src')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-peer-to-peer-push.ts | 16 |
1 files changed, 15 insertions, 1 deletions
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"]; |