[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] 02/02: Fix bugs strongly related to #5330.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] 02/02: Fix bugs strongly related to #5330. |
Date: |
Thu, 24 May 2018 15:56:21 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant.
commit 041ad71e176ddbdd246e710d2b8ac326d439639b
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu May 24 15:55:35 2018 +0200
Fix bugs strongly related to #5330.
---
src/lib/test_merchant_api_new.c | 21 ++++++++++++---------
src/lib/test_merchant_api_twisted.c | 2 +-
2 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/src/lib/test_merchant_api_new.c b/src/lib/test_merchant_api_new.c
index e6d0c00..7500981 100644
--- a/src/lib/test_merchant_api_new.c
+++ b/src/lib/test_merchant_api_new.c
@@ -977,25 +977,28 @@ run (void *cls,
\"value\":\"{EUR:10}\"} ] }",
NULL),
- /* This CMD will (1) successfully deposit `withdraw-coin-11a'
- * and subsequently _fail_ to deposit `withdraw-coin-1',
- * because of double spending. The abort CMD then will try
- * to get a refund permission out of that first coin that
- * was regularly spent, and eventually abort refund CMD, will
- * get the actual refund coin from the exchange. */
- TALER_TESTING_cmd_pay ("pay-fail-partial-double-11",
+ TALER_TESTING_cmd_pay ("pay-fail-partial-double-11-good",
+ merchant_url,
+ is->ctx,
+ MHD_HTTP_NOT_ACCEPTABLE,
+ "create-proposal-11",
+ "withdraw-coin-11a",
+ "EUR:5",
+ "EUR:4.99",
+ "EUR:0.01"),
+ TALER_TESTING_cmd_pay ("pay-fail-partial-double-11-bad",
merchant_url,
is->ctx,
MHD_HTTP_FORBIDDEN,
"create-proposal-11",
- "withdraw-coin-11a;withdraw-coin-1",
+ "withdraw-coin-1",
"EUR:5",
"EUR:4.99",
"EUR:0.01"),
TALER_TESTING_cmd_pay_abort ("pay-abort-11",
merchant_url,
- "pay-fail-partial-double-11",
+ "pay-fail-partial-double-11-good",
is->ctx,
MHD_HTTP_OK),
diff --git a/src/lib/test_merchant_api_twisted.c
b/src/lib/test_merchant_api_twisted.c
index cd9adb9..09eb771 100644
--- a/src/lib/test_merchant_api_twisted.c
+++ b/src/lib/test_merchant_api_twisted.c
@@ -635,7 +635,7 @@ run (void *cls,
TALER_TESTING_cmd_pay ("deposit-simple-for-abort",
twister_merchant_url,
is->ctx,
- 0,
+ MHD_HTTP_NOT_ACCEPTABLE,
"create-proposal-abort-1",
"withdraw-coin-abort-1",
"EUR:1",
--
To stop receiving notification emails like this one, please contact
address@hidden