Skip to content

Commit ec00239

Browse files
Apply prepare changes
1 parent 14f2163 commit ec00239

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎app/utils/local/microservices.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ async function runScript(
4949

5050
const controller = new AbortController();
5151
const timer = setTimeout(() => controller.abort(), timeoutSeconds * MILLISECONDS_PER_SECOND);
52-
if (typeof timer.unref === "function") { timer.unref(); }
52+
if (typeof timer.unref === "function") {
53+
timer.unref();
54+
}
5355

5456
try {
5557
const result = await waitForReady(child, expectedResponse, controller.signal);

‎app/utils/local/scripts.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function waitForReady(child, expectedResponse, signal) {
2626

2727
let recentOutput = "";
2828
function recordOutput(line) {
29-
recentOutput = (`${recentOutput} ${line} \n`).slice(-MAX_ERROR_BUFFER_BYTES);
29+
recentOutput = `${recentOutput} ${line} \n`.slice(-MAX_ERROR_BUFFER_BYTES);
3030
}
3131

3232
function cleanup() {
@@ -48,7 +48,7 @@ function waitForReady(child, expectedResponse, signal) {
4848
cleanup();
4949
resolve(child);
5050
}
51-
};
51+
}
5252

5353
function onErrLine(line) {
5454
console.log(`[${child.name}] ${line}`);
@@ -65,7 +65,8 @@ function waitForReady(child, expectedResponse, signal) {
6565
cleanup();
6666
reject(
6767
new Error(
68-
`[${child.name}] exited with code ${code} before becoming ready.${recentOutput ? `\nRecent output:\n${recentOutput}` : ""
68+
`[${child.name}] exited with code ${code} before becoming ready.${
69+
recentOutput ? `\nRecent output:\n${recentOutput}` : ""
6970
}`,
7071
),
7172
);

0 commit comments

Comments
 (0)