From ae509f1ba505fb497ee325b68f0ffe63505bb9fa Mon Sep 17 00:00:00 2001 From: Spencer Date: Tue, 21 Apr 2026 17:02:26 +0000 Subject: [PATCH] test(integration): fix stdin buffering race condition in file-system interactive test --- integration-tests/file-system-interactive.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integration-tests/file-system-interactive.test.ts b/integration-tests/file-system-interactive.test.ts index 6f955a1378..06f6b763ec 100644 --- a/integration-tests/file-system-interactive.test.ts +++ b/integration-tests/file-system-interactive.test.ts @@ -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); });