From 65c3d7cabb41a13cd8f75f655b390c19f77514ab Mon Sep 17 00:00:00 2001 From: Spencer Date: Mon, 20 Apr 2026 21:43:43 +0000 Subject: [PATCH] test(integration): fix command loader race condition and test timeouts in interactive compression test --- integration-tests/context-compress-interactive.test.ts | 7 +++++-- packages/test-utils/src/test-rig.ts | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/integration-tests/context-compress-interactive.test.ts b/integration-tests/context-compress-interactive.test.ts index c7e04c6c23..d5e0d957eb 100644 --- a/integration-tests/context-compress-interactive.test.ts +++ b/integration-tests/context-compress-interactive.test.ts @@ -49,7 +49,7 @@ describe('Interactive Mode', () => { ); await run.expectText('Chat history compressed', 5000); - }); + }, 60000); // TODO: Context compression is broken and doesn't include the system // instructions or tool counts, so it thinks compression is beneficial when @@ -93,6 +93,9 @@ describe('Interactive Mode', () => { }); const run = await rig.runInteractive(); + await run.expectText('tips for getting started:', 5000); + // Wait for the async command loaders to finish so /compress is recognized + await new Promise((r) => setTimeout(r, 2000)); await run.type('/compress'); await run.type('\r'); @@ -107,5 +110,5 @@ describe('Interactive Mode', () => { foundEvent, 'chat_compression telemetry event should not be found for NOOP', ).toBe(false); - }); + }, 60000); }); diff --git a/packages/test-utils/src/test-rig.ts b/packages/test-utils/src/test-rig.ts index 9374b573ac..bbad00d8ee 100644 --- a/packages/test-utils/src/test-rig.ts +++ b/packages/test-utils/src/test-rig.ts @@ -454,6 +454,7 @@ export class TestRig { // Nightly releases sometimes becomes out of sync with local code and // triggers auto-update, which causes tests to fail. enableAutoUpdate: false, + enableAutoUpdateNotification: false, }, telemetry: { enabled: true,