summaryrefslogtreecommitdiff
path: root/src/testing/test_merchant_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/test_merchant_api.c')
-rw-r--r--src/testing/test_merchant_api.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c
index 501cc7e6..adae22de 100644
--- a/src/testing/test_merchant_api.c
+++ b/src/testing/test_merchant_api.c
@@ -721,6 +721,10 @@ run (void *cls,
payer_payto,
"create-reserve-tip-1"),
cmd_exec_wirewatch ("wirewatch-3"),
+ /* Sleep so the merchant discovers that the reserve exists at the exchange
+ before trying to authorize a tip. */
+ TALER_TESTING_cmd_sleep ("wait-reserve-1",
+ 1),
TALER_TESTING_cmd_tip_authorize ("authorize-tip-1",
merchant_url,
EXCHANGE_URL,
@@ -748,6 +752,7 @@ run (void *cls,
TALER_TESTING_cmd_merchant_get_reserves ("get-reserves-1",
merchant_url,
MHD_HTTP_OK,
+ "create-reserve-tip-1",
NULL),
TALER_TESTING_cmd_merchant_get_reserve ("get-reserve-1",
merchant_url,
@@ -820,6 +825,8 @@ run (void *cls,
payer_payto,
"create-reserve-tip-2"),
cmd_exec_wirewatch ("wirewatch-4"),
+ TALER_TESTING_cmd_sleep ("wait-reserve-2",
+ 1),
TALER_TESTING_cmd_tip_authorize_from_reserve_with_ec (
"authorize-tip-insufficient-funds",
merchant_url,
@@ -1175,11 +1182,9 @@ run (void *cls,
#endif
TALER_TESTING_cmd_batch ("refund",
refund),
-#if 0
-// #endif
TALER_TESTING_cmd_batch ("tip",
tip),
-// #if 0
+#if 0
TALER_TESTING_cmd_batch ("pay-again",
pay_again),
TALER_TESTING_cmd_batch ("pay-abort",