summaryrefslogtreecommitdiff
path: root/src/testing/test_exchange_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-03-20 15:42:16 +0100
committerChristian Grothoff <grothoff@gnunet.org>2022-03-20 15:42:16 +0100
commit65808106c7d7ddad9420338f3fde139ec0c9295e (patch)
treeb00f9a3ee193d2100fb5901a9303189f21cda1ad /src/testing/test_exchange_api.c
parent532fabf20a3f9377f1f9526d38e068069a81a922 (diff)
downloadexchange-65808106c7d7ddad9420338f3fde139ec0c9295e.tar.gz
exchange-65808106c7d7ddad9420338f3fde139ec0c9295e.tar.bz2
exchange-65808106c7d7ddad9420338f3fde139ec0c9295e.zip
add test for reserve GET long polling
Diffstat (limited to 'src/testing/test_exchange_api.c')
-rw-r--r--src/testing/test_exchange_api.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/testing/test_exchange_api.c b/src/testing/test_exchange_api.c
index 5d3465dff..71f9ab7c1 100644
--- a/src/testing/test_exchange_api.c
+++ b/src/testing/test_exchange_api.c
@@ -134,6 +134,11 @@ run (void *cls,
*/
CMD_TRANSFER_TO_EXCHANGE ("create-reserve-1",
"EUR:6.02"),
+ TALER_TESTING_cmd_reserve_poll ("poll-reserve-1",
+ "create-reserve-1",
+ "EUR:6.02",
+ GNUNET_TIME_UNIT_MINUTES,
+ MHD_HTTP_OK),
TALER_TESTING_cmd_check_bank_admin_transfer ("check-create-reserve-1",
"EUR:6.02",
bc.user42_payto,
@@ -144,6 +149,9 @@ run (void *cls,
* transfer.
*/
CMD_EXEC_WIREWATCH ("wirewatch-1"),
+ TALER_TESTING_cmd_reserve_poll_finish ("finish-poll-reserve-1",
+ GNUNET_TIME_UNIT_SECONDS,
+ "poll-reserve-1"),
/**
* Withdraw EUR:5.
*/
@@ -290,7 +298,8 @@ run (void *cls,
MHD_HTTP_OK),
/* Try to partially spend (deposit) 1 EUR of the 5 EUR coin
* (in full) (merchant would receive EUR:0.99 due to 1 ct
- * deposit fee) *///
+ * deposit fee)
+ */
TALER_TESTING_cmd_deposit ("refresh-deposit-partial",
"refresh-withdraw-coin-1",
0,
@@ -587,7 +596,8 @@ run (void *cls,
MHD_HTTP_OK),
/* Try to partially spend (deposit) 1 EUR of the 5 EUR coin
* (in full) (merchant would receive EUR:0.99 due to 1 ct
- * deposit fee) *///
+ * deposit fee)
+ */
TALER_TESTING_cmd_deposit ("refresh-deposit-partial-age",
"refresh-withdraw-coin-age-1",
0,