From cbe93d4f7643091fbdc1c0073c5e05bef4b2eac5 Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Sat, 28 Mar 2026 16:21:31 -0400 Subject: [PATCH] test(docker): update executor tests for export syntax and build timeout Align test assertions with the env var export pattern and the 5-minute build timeout used by up and update operations. --- tests/unit/docker/docker-executor.test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/unit/docker/docker-executor.test.ts b/tests/unit/docker/docker-executor.test.ts index bb0025f9..3b9a5f2b 100644 --- a/tests/unit/docker/docker-executor.test.ts +++ b/tests/unit/docker/docker-executor.test.ts @@ -53,7 +53,7 @@ describe('docker executor', () => { expect(calls[0].options?.env?.CCS_NPM_VERSION).toBe('7.59.0'); expect(calls[0].options?.env?.CCS_DASHBOARD_PORT).toBe('4000'); expect(calls[0].options?.env?.CCS_CLIPROXY_PORT).toBe('9317'); - expect(calls[0].options?.timeoutMs).toBe(10_000); + expect(calls[0].options?.timeoutMs).toBe(300_000); }); it('stages bundled assets before remote compose startup', async () => { @@ -86,11 +86,11 @@ describe('docker executor', () => { expect(calls[1].options).toEqual({ remote: true, timeoutMs: 30_000 }); expect(calls[2].command).toBe('ssh'); expect(calls[2].args[0]).toBe('docker'); - expect(calls[2].args[1]).toContain("CCS_NPM_VERSION='7.59.0'"); - expect(calls[2].args[1]).toContain("CCS_DASHBOARD_PORT='3000'"); - expect(calls[2].args[1]).toContain("CCS_CLIPROXY_PORT='8317'"); + expect(calls[2].args[1]).toContain("export CCS_NPM_VERSION='7.59.0'"); + expect(calls[2].args[1]).toContain("export CCS_DASHBOARD_PORT='3000'"); + expect(calls[2].args[1]).toContain("export CCS_CLIPROXY_PORT='8317'"); expect(calls[2].args[1]).toContain('docker-compose version >/dev/null 2>&1'); - expect(calls[2].options?.timeoutMs).toBe(30_000); + expect(calls[2].options?.timeoutMs).toBe(300_000); }); it('uses npm install latest rather than npm update during in-container updates', async () => {