From 7d108fbd62bde1b2932338517572bcdc076af7f5 Mon Sep 17 00:00:00 2001 From: Wil Wade Date: Mon, 5 Aug 2024 20:51:19 +0000 Subject: [PATCH] Fix issue with GHA script --- .github/workflows/load-tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/load-tests.yml b/.github/workflows/load-tests.yml index d556f78f..23aac31c 100644 --- a/.github/workflows/load-tests.yml +++ b/.github/workflows/load-tests.yml @@ -93,9 +93,10 @@ jobs: const start = Date.now(); while (Date.now() - start < 120000) { try { - if ((await fetch('http://localhost:3000/readyz')).status === 200) { + const resp = await fetch('http://localhost:3000/readyz'); + if (resp.status === 200) { console.log('Ready check passed'); - return; + process.exit(0); } } catch (e) {} await new Promise(r => setTimeout(r, 3000));