diff options
author | Florian Dold <florian@dold.me> | 2024-03-05 01:44:41 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-03-05 01:44:41 +0100 |
commit | a98fe4b00d499b1fc2b9df6a21991e3449853868 (patch) | |
tree | a93ecebf3eb0703bb72050498580abb8a4d75c75 | |
parent | 1624c8fd0b2907b41e570dc8b7889354c07a19c8 (diff) | |
download | wallet-core-a98fe4b00d499b1fc2b9df6a21991e3449853868.tar.gz wallet-core-a98fe4b00d499b1fc2b9df6a21991e3449853868.tar.bz2 wallet-core-a98fe4b00d499b1fc2b9df6a21991e3449853868.zip |
taler-harness: get payment-share test to pass again
-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 */ |