We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f422b9 commit d9530bbCopy full SHA for d9530bb
integration/graphql-http-spec/healthcheck.js
@@ -5,7 +5,7 @@ const targetUrl = 'http://localhost:8080/graphql';
5
async function healthCheck() {
6
let attempts = 100;
7
while (attempts--) {
8
- console.log("waiting for server")
+ console.log("waiting for server");
9
try {
10
const health = await fetch(targetUrl, {
11
method: 'POST',
@@ -19,10 +19,12 @@ async function healthCheck() {
19
})
20
if (health.status === 200) {
21
return true;
22
+ } else {
23
+ console.log(`Error status: ${health.status}`);
24
}
25
26
} catch (e) {
- // continue
27
+ console.log(`Error: ${e}`);
28
29
30
await new Promise((r) => setTimeout(r, 1000));
0 commit comments