diff options
Diffstat (limited to 'packages/taler-harness')
-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"]; |