6 lines
200 B
JavaScript
6 lines
200 B
JavaScript
'use strict';
|
|
|
|
fetch('http://127.0.0.1:8094/health', { signal: AbortSignal.timeout(3000) })
|
|
.then(response => { if (!response.ok) process.exitCode = 1; })
|
|
.catch(() => { process.exitCode = 1; });
|