Skip to content

Commit

Permalink
Fix issue with GHA script
Browse files Browse the repository at this point in the history
  • Loading branch information
wilwade committed Aug 5, 2024
1 parent 79ff2fe commit 7d108fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/load-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 7d108fb

Please sign in to comment.