diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-12-16 20:18:44 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-12-16 20:18:44 +0100 |
commit | 1acc851deb38c52e4212823100eec8a00d5f385a (patch) | |
tree | 67d62b84291996a0def04e9cec16e06025a285ed /src/testing | |
parent | 3b6a0dd5994b824ecbf246bb17e5be7611e89386 (diff) |
-fix recoup ugliness
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/test_exchange_api.c | 2 | ||||
-rw-r--r-- | src/testing/test_exchange_api_revocation.c | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/testing/test_exchange_api.c b/src/testing/test_exchange_api.c index 3e1df3841..6dced3e37 100644 --- a/src/testing/test_exchange_api.c +++ b/src/testing/test_exchange_api.c @@ -855,7 +855,7 @@ run (void *cls, MHD_HTTP_OK, "recoup-withdraw-coin-2a", NULL, - NULL), + "EUR:0.5"), TALER_TESTING_cmd_deposit ("recoup-deposit-revoked", "recoup-withdraw-coin-2b", 0, diff --git a/src/testing/test_exchange_api_revocation.c b/src/testing/test_exchange_api_revocation.c index 9b66e20be..1a334a71b 100644 --- a/src/testing/test_exchange_api_revocation.c +++ b/src/testing/test_exchange_api_revocation.c @@ -139,7 +139,7 @@ run (void *cls, MHD_HTTP_GONE, "refresh-reveal-1#0", "refresh-melt-1", - NULL), + "EUR:0.1"), /* Make refreshed coin invalid */ TALER_TESTING_cmd_revoke ("revoke-2-EUR:5", MHD_HTTP_OK, @@ -155,44 +155,44 @@ run (void *cls, MHD_HTTP_CONFLICT, "withdraw-revocation-coin-2", NULL, - NULL), + "EUR:0.1"), /* Refund coin to original coin */ TALER_TESTING_cmd_recoup ("recoup-1a", MHD_HTTP_OK, "refresh-reveal-1#0", "refresh-melt-1", - NULL), + "EUR:1"), TALER_TESTING_cmd_recoup ("recoup-1b", MHD_HTTP_OK, "refresh-reveal-1#1", "refresh-melt-1", - NULL), + "EUR:1"), TALER_TESTING_cmd_recoup ("recoup-1c", MHD_HTTP_OK, "refresh-reveal-1#2", "refresh-melt-1", - NULL), + "EUR:1"), /* Repeat recoup to test idempotency */ TALER_TESTING_cmd_recoup ("recoup-1c", MHD_HTTP_OK, "refresh-reveal-1#2", "refresh-melt-1", - NULL), + "EUR:1"), TALER_TESTING_cmd_recoup ("recoup-1c", MHD_HTTP_OK, "refresh-reveal-1#2", "refresh-melt-1", - NULL), + "EUR:1"), TALER_TESTING_cmd_recoup ("recoup-1c", MHD_HTTP_OK, "refresh-reveal-1#2", "refresh-melt-1", - NULL), + "EUR:1"), TALER_TESTING_cmd_recoup ("recoup-1c", MHD_HTTP_OK, "refresh-reveal-1#2", "refresh-melt-1", - NULL), + "EUR:1"), /* Now we have EUR:3.83 EUR back after 3x EUR:1 in recoups */ /* Melt original coin AGAIN, but only create one 0.1 EUR coin; This costs EUR:0.03 in refresh and EUR:01 in withdraw fees, @@ -223,7 +223,7 @@ run (void *cls, MHD_HTTP_OK, "refresh-reveal-2", "refresh-melt-2", - NULL), + "EUR:0.1"), /* Due to recoup, original coin is now at EUR:3.79 */ /* Refund original (now zombie) coin to reserve */ TALER_TESTING_cmd_recoup ("recoup-3", |