aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-05-17 15:35:45 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-05-17 15:35:45 +0200
commit5e1178a74b9d581910bb1067a195e59f3c6ddcd2 (patch)
treefd526a2d916a8705c312e2659ed5d28c3cfb7eff /src/exchange-lib
parentc0c5bd3ba70d6e75bbcc1cb9cb275569e451a5e4 (diff)
Trigger double(-successful) refund.
Diffstat (limited to 'src/exchange-lib')
-rw-r--r--src/exchange-lib/test_exchange_api_new.c4
-rw-r--r--src/exchange-lib/test_exchange_api_twisted.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/src/exchange-lib/test_exchange_api_new.c b/src/exchange-lib/test_exchange_api_new.c
index 8d39ca087..eeead787d 100644
--- a/src/exchange-lib/test_exchange_api_new.c
+++ b/src/exchange-lib/test_exchange_api_new.c
@@ -496,6 +496,10 @@ run (void *cls,
("refund-ok", MHD_HTTP_OK,
"EUR:5", "EUR:0.01", "deposit-refund-1"),
+ TALER_TESTING_cmd_refund
+ ("refund-ok-double", MHD_HTTP_OK,
+ "EUR:5", "EUR:0.01", "deposit-refund-1"),
+
/**
* Spend 4.99 EUR of the refunded 4.99 EUR coin (1ct gone
* due to refund) (merchant would receive EUR:4.98 due to
diff --git a/src/exchange-lib/test_exchange_api_twisted.c b/src/exchange-lib/test_exchange_api_twisted.c
index 6542a3f07..36214cce0 100644
--- a/src/exchange-lib/test_exchange_api_twisted.c
+++ b/src/exchange-lib/test_exchange_api_twisted.c
@@ -303,6 +303,9 @@ run (void *cls,
"EUR:0.000001",
"deposit-refund-1"),
+ /* Last CMD be "money gone". Do
+ * aggregate before exec'ing it (!). */
+
TALER_TESTING_cmd_end ()
};