From 5df7ddba97aa4482c781bfe8e87f60c3bc195ae4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 17 Jun 2021 13:34:59 +0200 Subject: use the new wallet core API interface in all tests --- .../src/integrationtests/test-payment-multiple.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/taler-wallet-cli/src/integrationtests/test-payment-multiple.ts') diff --git a/packages/taler-wallet-cli/src/integrationtests/test-payment-multiple.ts b/packages/taler-wallet-cli/src/integrationtests/test-payment-multiple.ts index 5197967b8..f545d5861 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-payment-multiple.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-payment-multiple.ts @@ -28,6 +28,7 @@ import { } from "./harness"; import { withdrawViaBank } from "./helpers"; import { coin_ct10, coin_u1 } from "./denomStructures"; +import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; async function setupTest( t: GlobalTestState, @@ -137,16 +138,14 @@ export async function runPaymentMultipleTest(t: GlobalTestState) { // Make wallet pay for the order - const r1 = await wallet.apiRequest("preparePay", { + const r1 = await wallet.client.call(WalletApiOperation.PreparePayForUri, { talerPayUri: orderStatus.taler_pay_uri, }); - t.assertTrue(r1.type === "response"); - const r2 = await wallet.apiRequest("confirmPay", { + await wallet.client.call(WalletApiOperation.ConfirmPay, { // FIXME: should be validated, don't cast! - proposalId: (r1.result as any).proposalId, + proposalId: r1.proposalId, }); - t.assertTrue(r2.type === "response"); // Check if payment was successful. @@ -160,3 +159,4 @@ export async function runPaymentMultipleTest(t: GlobalTestState) { } runPaymentMultipleTest.suites = ["wallet"]; +runPaymentMultipleTest.timeoutMs = 120000; -- cgit v1.2.3