[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: taler-harness: get payment-sh
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: taler-harness: get payment-share test to pass again |
Date: |
Tue, 05 Mar 2024 01:44:46 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new a98fe4b00 taler-harness: get payment-share test to pass again
a98fe4b00 is described below
commit a98fe4b00d499b1fc2b9df6a21991e3449853868
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Mar 5 01:44:41 2024 +0100
taler-harness: get payment-share test to pass again
---
.../src/integrationtests/test-payment-share.ts | 15 +++++++++++++--
1 file 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
*/
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: taler-harness: get payment-share test to pass again,
gnunet <=