From 65941cd60dacc3bea3687307c9a4f3b4feceb210 Mon Sep 17 00:00:00 2001 From: Samuel Vazquez Date: Mon, 11 Mar 2024 15:52:28 -0700 Subject: [PATCH] chore: http spec logs --- integration/graphql-http-spec/healthcheck.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/integration/graphql-http-spec/healthcheck.js b/integration/graphql-http-spec/healthcheck.js index 74f6f5158d..8d0fde22fc 100644 --- a/integration/graphql-http-spec/healthcheck.js +++ b/integration/graphql-http-spec/healthcheck.js @@ -5,7 +5,7 @@ const targetUrl = 'http://localhost:8080/graphql'; async function healthCheck() { let attempts = 100; while (attempts--) { - console.log("waiting for server") + console.log("waiting for server"); try { const health = await fetch(targetUrl, { method: 'POST', @@ -19,10 +19,12 @@ async function healthCheck() { }) if (health.status === 200) { return true; + } else { + console.log(`Error status: ${health.status}`); } } catch (e) { - // continue + console.log(`Error: ${e}`); } await new Promise((r) => setTimeout(r, 1000));