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));