gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: also accept payment in test


From: gnunet
Subject: [taler-wallet-core] branch master updated: also accept payment in test
Date: Wed, 07 Sep 2022 14:49:19 +0200

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 dcc1bcee also accept payment in test
dcc1bcee is described below

commit dcc1bcee4337e257b10b64a562cba8ac2717db41
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Sep 7 14:49:10 2022 +0200

    also accept payment in test
---
 .../integrationtests/test-age-restrictions-peer.ts  | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git 
a/packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-peer.ts 
b/packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-peer.ts
index 12e993c3..3d160ca0 100644
--- 
a/packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-peer.ts
+++ 
b/packages/taler-wallet-cli/src/integrationtests/test-age-restrictions-peer.ts
@@ -17,7 +17,7 @@
 /**
  * Imports.
  */
-import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
+import { getDefaultNodeWallet2, WalletApiOperation } from 
"@gnu-taler/taler-wallet-core";
 import { defaultCoinConfig } from "../harness/denomStructures.js";
 import { GlobalTestState, WalletCli } from "../harness/harness.js";
 import {
@@ -59,14 +59,7 @@ export async function runAgeRestrictionsPeerTest(t: 
GlobalTestState) {
       restrictAge: 13,
     });
 
-    const order = {
-      summary: "Buy me!",
-      amount: "TESTKUDOS:5",
-      fulfillment_url: "taler://fulfillment-success/thx",
-      minimum_age: 9,
-    };
-
-    await wallet.client.call(WalletApiOperation.InitiatePeerPushPayment, {
+    const initResp = await 
wallet.client.call(WalletApiOperation.InitiatePeerPushPayment, {
       amount: "TESTKUDOS:1",
       partialContractTerms: {
         summary: "Hello, World",
@@ -74,6 +67,16 @@ export async function runAgeRestrictionsPeerTest(t: 
GlobalTestState) {
     });
 
     await wallet.runUntilDone();
+
+    const checkResp = await 
walletTwo.client.call(WalletApiOperation.CheckPeerPushPayment, {
+      talerUri: initResp.talerUri,
+    });
+
+    await walletTwo.client.call(WalletApiOperation.AcceptPeerPushPayment, {
+      peerPushPaymentIncomingId: checkResp.peerPushPaymentIncomingId,
+    });
+
+    await walletTwo.runUntilDone();
   }
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]