From 289675f50f97641c11cd9e610e2bff13c0994d1c Mon Sep 17 00:00:00 2001 From: Joe Bowbeer Date: Sat, 27 Jul 2024 02:42:59 +0000 Subject: [PATCH] reduce flakiness Signed-off-by: Joe Bowbeer --- service_invocation/javascript/http/checkout/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service_invocation/javascript/http/checkout/index.js b/service_invocation/javascript/http/checkout/index.js index f12978477..d9721204c 100644 --- a/service_invocation/javascript/http/checkout/index.js +++ b/service_invocation/javascript/http/checkout/index.js @@ -12,13 +12,13 @@ async function main() { }; for(var i = 1; i <= 20; i++) { + await sleep(1000); + const order = {orderId: i}; // Invoking a service const res = await axios.post(`${DAPR_HOST}:${DAPR_HTTP_PORT}/orders`, order , axiosConfig); console.log("Order passed: " + res.config.data); - - await sleep(1000); } }