diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-17 15:50:50 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-17 15:50:50 +0200 |
commit | 381ac75ae0a29edb6585cc68fbd2b81b1aeaff85 (patch) | |
tree | 83c31b8d6099395924bdcf902a020f46545932d3 /src/exchange-lib/test_exchange_api_new.c | |
parent | 5e1178a74b9d581910bb1067a195e59f3c6ddcd2 (diff) | |
download | exchange-381ac75ae0a29edb6585cc68fbd2b81b1aeaff85.tar.xz |
Trigger conflicting refunds
Diffstat (limited to 'src/exchange-lib/test_exchange_api_new.c')
-rw-r--r-- | src/exchange-lib/test_exchange_api_new.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/exchange-lib/test_exchange_api_new.c b/src/exchange-lib/test_exchange_api_new.c index eeead787d..c5e62a0e5 100644 --- a/src/exchange-lib/test_exchange_api_new.c +++ b/src/exchange-lib/test_exchange_api_new.c @@ -500,6 +500,11 @@ run (void *cls, ("refund-ok-double", MHD_HTTP_OK, "EUR:5", "EUR:0.01", "deposit-refund-1"), + /* Previous /refund(s) had id == 0. */ + TALER_TESTING_cmd_refund_with_id + ("refund-conflicting", MHD_HTTP_CONFLICT, + "EUR:5", "EUR:0.01", "deposit-refund-1", 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 |