mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-14 02:10:07 +08:00
test: harden mcp health port readiness
This commit is contained in:
parent
6d613f67dd
commit
67a8b914ee
@ -128,7 +128,10 @@ function waitForFile(filePath, timeoutMs = 5000) {
|
||||
const started = Date.now();
|
||||
while (Date.now() - started < timeoutMs) {
|
||||
if (fs.existsSync(filePath)) {
|
||||
return fs.readFileSync(filePath, 'utf8');
|
||||
const content = fs.readFileSync(filePath, 'utf8');
|
||||
if (content.trim()) {
|
||||
return content;
|
||||
}
|
||||
}
|
||||
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 25);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user