Skip to content

Commit d9530bb

Browse files
Update healthcheck.js
1 parent 0f422b9 commit d9530bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

integration/graphql-http-spec/healthcheck.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const targetUrl = 'http://localhost:8080/graphql';
55
async function healthCheck() {
66
let attempts = 100;
77
while (attempts--) {
8-
console.log("waiting for server")
8+
console.log("waiting for server");
99
try {
1010
const health = await fetch(targetUrl, {
1111
method: 'POST',
@@ -19,10 +19,12 @@ async function healthCheck() {
1919
})
2020
if (health.status === 200) {
2121
return true;
22+
} else {
23+
console.log(`Error status: ${health.status}`);
2224
}
2325

2426
} catch (e) {
25-
// continue
27+
console.log(`Error: ${e}`);
2628
}
2729

2830
await new Promise((r) => setTimeout(r, 1000));

0 commit comments

Comments
 (0)