test(integration): fix stdin buffering race condition in file-system interactive test

This commit is contained in:
Spencer
2026-04-21 17:02:26 +00:00
parent 65c3d7cabb
commit ae509f1ba5
@@ -33,6 +33,8 @@ describe('Interactive file system', () => {
rig.createFile(fileName, '1.0.0');
const run = await rig.runInteractive();
await run.expectText('tips for getting started:', 5000);
await new Promise((r) => setTimeout(r, 1000));
// Step 1: Read the file
const readPrompt = `Read the version from ${fileName}`;
@@ -56,5 +58,5 @@ describe('Interactive file system', () => {
// Wait for telemetry to flush and file system to sync, especially in sandboxed environments
await rig.waitForTelemetryReady();
});
}, 60000);
});