From 6729980b47db068c87bbeb98fe94fbc9798a3cd6 Mon Sep 17 00:00:00 2001 From: tanzhenxin Date: Thu, 4 Dec 2025 10:28:21 +0800 Subject: [PATCH] skip acp integration test in sandbox env (#1141) --- integration-tests/acp-integration.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/integration-tests/acp-integration.test.ts b/integration-tests/acp-integration.test.ts index d09ec54d..b098e025 100644 --- a/integration-tests/acp-integration.test.ts +++ b/integration-tests/acp-integration.test.ts @@ -15,6 +15,9 @@ const REQUEST_TIMEOUT_MS = 60_000; const INITIAL_PROMPT = 'Create a quick note (smoke test).'; const RESUME_PROMPT = 'Continue the note after reload.'; const LIST_SIZE = 5; +const IS_SANDBOX = + process.env['GEMINI_SANDBOX'] && + process.env['GEMINI_SANDBOX']!.toLowerCase() !== 'false'; type PendingRequest = { resolve: (value: unknown) => void; @@ -86,7 +89,6 @@ function setupAcpTest( const agent = spawn('node', [rig.bundlePath, '--experimental-acp'], { cwd: rig.testDir!, stdio: ['pipe', 'pipe', 'pipe'], - env: { ...process.env }, }); agent.stderr?.on('data', (chunk) => { @@ -250,7 +252,7 @@ function setupAcpTest( }; } -describe('acp integration', () => { +(IS_SANDBOX ? describe.skip : describe)('acp integration', () => { it('creates, lists, loads, and resumes a session', async () => { const rig = new TestRig(); rig.setup('acp load session');