Skip to content

Commit 48bca56

Browse files
committed
chore: lint
1 parent 2cdba31 commit 48bca56

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

example/tests/context.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/explicit-function-return-type */
12
const fs = require('fs');
23
const run = require('child_process').execSync;
34

@@ -11,9 +12,7 @@ function readFileWithRetry(path, maxRetries = 30, delay = 1000) {
1112
console.error(`Failed to read ${path} after ${maxRetries} attempts`);
1213
throw err;
1314
}
14-
console.error(
15-
`Attempt ${i + 1}/${maxRetries}: Waiting for ${path}...`,
16-
);
15+
console.error(`Attempt ${i + 1}/${maxRetries}: Waiting for ${path}...`);
1716
// Sleep synchronously (only works on Unix-like systems)
1817
run(`sleep ${delay / 1000}`);
1918
}
@@ -27,7 +26,9 @@ function runWithRetry(cmd, maxRetries = 30, delay = 1000) {
2726
return run(cmd, { encoding: 'utf8' });
2827
} catch (err) {
2928
if (i === maxRetries - 1) {
30-
console.error(`Failed to run command after ${maxRetries} attempts: ${cmd}`);
29+
console.error(
30+
`Failed to run command after ${maxRetries} attempts: ${cmd}`,
31+
);
3132
throw err;
3233
}
3334
console.error(

0 commit comments

Comments
 (0)