gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -expand p2p tests with purse lon


From: gnunet
Subject: [taler-exchange] branch master updated: -expand p2p tests with purse long poller
Date: Sat, 30 Apr 2022 14:03:59 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new fed8353c -expand p2p tests with purse long poller
fed8353c is described below

commit fed8353c67136c6252aaf4316d25a880f768ec7b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Apr 30 14:03:57 2022 +0200

    -expand p2p tests with purse long poller
---
 src/testing/test_exchange_p2p.c | 30 ++++++++++++++++++++++++++++--
 1 file changed, 28 insertions(+), 2 deletions(-)

diff --git a/src/testing/test_exchange_p2p.c b/src/testing/test_exchange_p2p.c
index 8e5fea0e..39e6bb32 100644
--- a/src/testing/test_exchange_p2p.c
+++ b/src/testing/test_exchange_p2p.c
@@ -157,6 +157,13 @@ run (void *cls,
       "withdraw-coin-1",
       "EUR:1.01",
       NULL),
+    TALER_TESTING_cmd_purse_poll (
+      "poll-purse-before-merge",
+      MHD_HTTP_OK,
+      "purse-with-deposit",
+      "EUR:1",
+      true,
+      GNUNET_TIME_UNIT_MINUTES),
     TALER_TESTING_cmd_contract_get (
       "push-get-contract",
       MHD_HTTP_OK,
@@ -167,7 +174,13 @@ run (void *cls,
       MHD_HTTP_OK,
       "push-get-contract",
       "create-reserve-1"),
-    // FIXME: long-poll purse status
+    TALER_TESTING_cmd_purse_poll_finish (
+      "merge-purse-poll-finish",
+      GNUNET_TIME_relative_multiply (
+        GNUNET_TIME_UNIT_SECONDS,
+        5),
+      "poll-purse-before-merge"),
+    // FIXME: trigger p2p job
     // FIXME: check reserve history!
     TALER_TESTING_cmd_end ()
   };
@@ -184,6 +197,13 @@ run (void *cls,
       MHD_HTTP_OK,
       false, /* for deposit */
       "purse-create-with-reserve"),
+    TALER_TESTING_cmd_purse_poll (
+      "poll-purse-before-deposit",
+      MHD_HTTP_OK,
+      "purse-create-with-reserve",
+      "EUR:1",
+      false,
+      GNUNET_TIME_UNIT_MINUTES),
     TALER_TESTING_cmd_purse_deposit_coins (
       "purse-deposit-coins",
       MHD_HTTP_OK,
@@ -192,7 +212,13 @@ run (void *cls,
       "withdraw-coin-1",
       "EUR:1.01",
       NULL),
-    // FIXME: long-poll purse status
+    TALER_TESTING_cmd_purse_poll_finish (
+      "deposit-purse-poll-finish",
+      GNUNET_TIME_relative_multiply (
+        GNUNET_TIME_UNIT_SECONDS,
+        5),
+      "poll-purse-before-deposit"),
+    // FIXME: trigger p2p job
     // FIXME: check reserve history!
     TALER_TESTING_cmd_end ()
   };

-- 
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]