[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] 12/12: fix tipping test aftermath.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] 12/12: fix tipping test aftermath. |
Date: |
Mon, 26 Mar 2018 10:38:06 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant.
commit a54daf35f13591a17a07da9f63479ac7fea27225
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Mar 26 10:33:51 2018 +0200
fix tipping test aftermath.
---
src/lib/test_merchant_api_new.c | 13 ++++++++-----
src/lib/testing_api_cmd_refund.c | 12 ++++++------
2 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/src/lib/test_merchant_api_new.c b/src/lib/test_merchant_api_new.c
index d1525f0..d063491 100644
--- a/src/lib/test_merchant_api_new.c
+++ b/src/lib/test_merchant_api_new.c
@@ -629,6 +629,14 @@ run (void *cls,
"EUR:4.99", // amount - fee
"EUR:0.01"), // refund fee
+ CMD_EXEC_AGGREGATOR ("aggregator-tip-1"),
+ TALER_TESTING_cmd_check_bank_transfer
+ ("check_bank_transfer-tip-498c",
+ "http://localhost:8081/",
+ "EUR:4.98", EXCHANGE_ACCOUNT_NO, USER_ACCOUNT_NO),
+ TALER_TESTING_cmd_check_bank_empty
+ ("check_bank_empty-at-tips"),
+
/* pay again logic. */
TALER_TESTING_cmd_fakebank_transfer
("create-reserve-10",
@@ -647,9 +655,6 @@ run (void *cls,
"http://localhost:8081/",
"EUR:10.02", USER_ACCOUNT_NO, EXCHANGE_ACCOUNT_NO),
- /* This is not found at the original tests. */
- TALER_TESTING_cmd_check_bank_empty ("be_sure"),
-
TALER_TESTING_cmd_withdraw_amount ("withdraw-coin-10a",
is->exchange,
"create-reserve-10",
@@ -719,8 +724,6 @@ run (void *cls,
TALER_TESTING_cmd_check_bank_empty ("check_bank_empty-10"),
- TALER_TESTING_cmd_end (),
-
/* pay abort */
CMD_TRANSFER_TO_EXCHANGE ("create-reserve-11",
"EUR:10.02"),
diff --git a/src/lib/testing_api_cmd_refund.c b/src/lib/testing_api_cmd_refund.c
index b85dcf6..7cae8c6 100644
--- a/src/lib/testing_api_cmd_refund.c
+++ b/src/lib/testing_api_cmd_refund.c
@@ -237,8 +237,8 @@ refund_lookup_cb (void *cls,
&h_coin_pub);
GNUNET_assert (GNUNET_OK == GNUNET_CONTAINER_multihashmap_put
(map,
- &h_coin_pub,
- irefund_amount,
+ &h_coin_pub, // which
+ irefund_amount, // how much
GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY));
};
@@ -265,7 +265,7 @@ refund_lookup_cb (void *cls,
if ( NULL ==
( icoin_cmd = TALER_TESTING_interpreter_lookup_command
- (rls->is, icoin_reference)))
+ (rls->is, icoin_reference)) )
{
GNUNET_break (0);
TALER_LOG_ERROR ("Bad reference `%s'\n",
@@ -305,9 +305,9 @@ refund_lookup_cb (void *cls,
GNUNET_free (coin_reference_dup);
- if ( NULL ==
- ( increase_cmd = TALER_TESTING_interpreter_lookup_command
- (rls->is, rls->increase_reference)))
+ if (NULL ==
+ (increase_cmd = TALER_TESTING_interpreter_lookup_command
+ (rls->is, rls->increase_reference)))
TALER_TESTING_FAIL (rls->is);
if (GNUNET_OK != TALER_TESTING_get_trait_amount
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-merchant] branch master updated (a607690 -> a54daf3), gnunet, 2018/03/26
- [GNUnet-SVN] [taler-merchant] 08/12: tip queries, before error generating authorize(s)., gnunet, 2018/03/26
- [GNUnet-SVN] [taler-merchant] 04/12: putting tip-query under test., gnunet, 2018/03/26
- [GNUnet-SVN] [taler-merchant] 03/12: putting second tip-authorize under tests., gnunet, 2018/03/26
- [GNUnet-SVN] [taler-merchant] 11/12: extra bank checks (no pass now), gnunet, 2018/03/26
- [GNUnet-SVN] [taler-merchant] 02/12: putting tip-authorize into tests., gnunet, 2018/03/26
- [GNUnet-SVN] [taler-merchant] 10/12: spending tip passes., gnunet, 2018/03/26
- [GNUnet-SVN] [taler-merchant] 12/12: fix tipping test aftermath.,
gnunet <=
- [GNUnet-SVN] [taler-merchant] 06/12: putting tip-pickup under test., gnunet, 2018/03/26
- [GNUnet-SVN] [taler-merchant] 01/12: fix confusion about reserve creation, gnunet, 2018/03/26
- [GNUnet-SVN] [taler-merchant] 05/12: putting query with amounts under test., gnunet, 2018/03/26
- [GNUnet-SVN] [taler-merchant] 07/12: after pickup query under test., gnunet, 2018/03/26
- [GNUnet-SVN] [taler-merchant] 09/12: testing until last pickup ("too much" one), gnunet, 2018/03/26