diff options
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-payment-share.ts')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-payment-share.ts | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-payment-share.ts b/packages/taler-harness/src/integrationtests/test-payment-share.ts index 4a7f853da..141faa81e 100644 --- a/packages/taler-harness/src/integrationtests/test-payment-share.ts +++ b/packages/taler-harness/src/integrationtests/test-payment-share.ts @@ -22,6 +22,7 @@ import { MerchantApiClient, NotificationType, PreparePayResultType, + j2s, } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { GlobalTestState } from "../harness/harness.js"; @@ -104,7 +105,7 @@ export async function runPaymentShareTest(t: GlobalTestState) { * - Claim with first wallet and pay in the second wallet. * - First wallet should be notified. */ - if (0) { + { const order = await createOrder("TESTKUDOS:5"); // Claim the order with the first wallet const claimFirstWallet = await firstWallet.call( @@ -190,10 +191,20 @@ export async function runPaymentShareTest(t: GlobalTestState) { transactionId: claimFirstWallet.transactionId, }); - t.assertTrue(r1.type === ConfirmPayResultType.Pending); + //t.assertTrue(r1.type === ConfirmPayResultType.Pending); t.logStep("w1-confirmed-shared"); + await firstWallet.call( + WalletApiOperation.TestingWaitTransactionsFinal, + {}, + ); + + await secondWallet.call( + WalletApiOperation.TestingWaitTransactionsFinal, + {}, + ); + /** * only the second wallet balance was affected */ |