summaryrefslogtreecommitdiff
path: root/src/testing/test_merchant_api.c
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-06-29 13:48:40 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-06-29 13:48:40 -0400
commitb637514b36e6c0f44505fca510f3033b85c932ff (patch)
tree4e6487c244efd1818221a6afe010465bb0c6906a /src/testing/test_merchant_api.c
parenta118bd2c4951fa7b60737e3cca69e62266a1bcef (diff)
downloadmerchant-b637514b36e6c0f44505fca510f3033b85c932ff.tar.gz
merchant-b637514b36e6c0f44505fca510f3033b85c932ff.tar.bz2
merchant-b637514b36e6c0f44505fca510f3033b85c932ff.zip
long polling test for GET /private/orders
Diffstat (limited to 'src/testing/test_merchant_api.c')
-rw-r--r--src/testing/test_merchant_api.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testing/test_merchant_api.c b/src/testing/test_merchant_api.c
index 3bee5bd9..501cc7e6 100644
--- a/src/testing/test_merchant_api.c
+++ b/src/testing/test_merchant_api.c
@@ -271,6 +271,9 @@ run (void *cls,
"create-reserve-1",
"EUR:0",
MHD_HTTP_OK),
+ TALER_TESTING_cmd_poll_orders_start ("poll-orders-1-start",
+ merchant_url,
+ GNUNET_TIME_UNIT_MINUTES),
TALER_TESTING_cmd_merchant_post_orders ("create-proposal-1",
merchant_url,
MHD_HTTP_OK,
@@ -283,6 +286,9 @@ run (void *cls,
\"fulfillment_url\": \"https://example.com/\",\
\"products\": [ {\"description\":\"ice cream\",\
\"value\":\"{EUR:5}\"} ] }"),
+ TALER_TESTING_cmd_poll_orders_conclude ("poll-orders-1-conclude",
+ MHD_HTTP_OK,
+ "poll-orders-1-start"),
TALER_TESTING_cmd_merchant_get_orders ("get-orders-1",
merchant_url,
MHD_HTTP_OK,