gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant] branch master updated: call increase_refun


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: call increase_refund_for_contract skeleton from testcase, obviously failing.
Date: Thu, 08 Jun 2017 11:00:39 +0200

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

marcello pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new ea11919  call increase_refund_for_contract skeleton from testcase, 
obviously failing.
ea11919 is described below

commit ea11919916555637c0ef329e439c0322e6e51c00
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Jun 8 10:59:52 2017 +0200

    call increase_refund_for_contract skeleton from testcase,
    obviously failing.
---
 src/backenddb/test_merchantdb.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c
index 04e6707..cca5f19 100644
--- a/src/backenddb/test_merchantdb.c
+++ b/src/backenddb/test_merchantdb.c
@@ -117,6 +117,11 @@ static struct TALER_Amount deposit_fee;
 static struct TALER_Amount refund_fee;
 
 /**
+ * Amount to be refunded.
+ */
+static struct TALER_Amount refund_amount;
+
+/**
  * Public key of the coin.  Set to some random value.
  */
 static struct TALER_CoinSpendPublicKeyP coin_pub;
@@ -378,6 +383,9 @@ run (void *cls)
   GNUNET_assert (GNUNET_OK ==
                  TALER_string_to_amount (CURRENCY ":0.000010",
                                          &refund_fee));
+  GNUNET_assert (GNUNET_OK ==
+                 TALER_string_to_amount (CURRENCY ":1",
+                                         &refund_amount));
   RND_BLK (&coin_pub);
   deposit_proof = json_object ();
   GNUNET_assert (0 ==
@@ -526,6 +534,11 @@ run (void *cls)
                                                         &h_contract_terms,
                                                         &refund_cb,
                                                         NULL));
+  FAILIF (GNUNET_OK !=
+          plugin->increase_refund_for_contract (plugin->cls,
+                                                &h_contract_terms,
+                                                &refund_amount,
+                                                "refund testing"));
   if (-1 == result)
     result = 0;
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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