summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-27 18:05:09 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-27 18:05:21 +0530
commit449e99bd51951ef29675f164f4e7b5b086531d3c (patch)
tree30e5a8bdc6747636da9c26f57d1a055e7cf18d7a /src/testing
parente8c8efe5ec093428a0af300931f9147732c91fa9 (diff)
downloadexchange-449e99bd51951ef29675f164f4e7b5b086531d3c.tar.gz
exchange-449e99bd51951ef29675f164f4e7b5b086531d3c.tar.bz2
exchange-449e99bd51951ef29675f164f4e7b5b086531d3c.zip
test multiple transfers to same reserve
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/test_exchange_api.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/testing/test_exchange_api.c b/src/testing/test_exchange_api.c
index d239aae6..941873e9 100644
--- a/src/testing/test_exchange_api.c
+++ b/src/testing/test_exchange_api.c
@@ -122,9 +122,9 @@ run (void *cls,
* Move money to the exchange's bank account.
*/
CMD_TRANSFER_TO_EXCHANGE ("create-reserve-1",
- "EUR:5.01"),
+ "EUR:4.01"),
TALER_TESTING_cmd_check_bank_admin_transfer ("check-create-reserve-1",
- "EUR:5.01",
+ "EUR:4.01",
bc.user42_payto,
bc.exchange_payto,
"create-reserve-1"),
@@ -134,6 +134,20 @@ run (void *cls,
*/
CMD_EXEC_WIREWATCH ("wirewatch-1"),
/**
+ * Do another transfer to the same reserve
+ */
+ TALER_TESTING_cmd_admin_add_incoming_with_ref ("create-reserve-1.2",
+ "EUR:1",
+ &bc.exchange_auth,
+ bc.user42_payto,
+ "create-reserve-1"),
+ TALER_TESTING_cmd_check_bank_admin_transfer ("check-create-reserve-1.2",
+ "EUR:1",
+ bc.user42_payto,
+ bc.exchange_payto,
+ "create-reserve-1.2"),
+ CMD_EXEC_WIREWATCH ("wirewatch-1.2"),
+ /**
* Withdraw EUR:5.
*/
TALER_TESTING_cmd_withdraw_amount ("withdraw-coin-1",