From db5f890c7fae618a846de34d75018958c5873dbb Mon Sep 17 00:00:00 2001 From: Chinesezjc Date: Sun, 2 Aug 2026 19:33:06 +0800 Subject: [PATCH] test(code-runtime-python): update CPU-timeout assertions to the reworded message The SIGXCPU timeout message changed from "CPU budget (Ns) exhausted" to name the configured value as a ceiling; two existing timeout tests asserted the old text. Assert "CPU time exhausted" to match. --- .../code-runtime/code-runtime-python/tests/runtime.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/code-runtime/code-runtime-python/tests/runtime.spec.ts b/packages/code-runtime/code-runtime-python/tests/runtime.spec.ts index e8d68acd75..eec187a5a0 100644 --- a/packages/code-runtime/code-runtime-python/tests/runtime.spec.ts +++ b/packages/code-runtime/code-runtime-python/tests/runtime.spec.ts @@ -1618,7 +1618,7 @@ describe('PythonCodeRuntime — budgets, termination, disposal', () => { bindings: [], }) expect(result.error?.kind).toBe('timeout') - expect(result.error?.message).toContain('CPU budget') + expect(result.error?.message).toContain('CPU time exhausted') }, 8000) it('keeps an early self-inflicted SIGKILL a worker-exit, not a CPU timeout', async () => { @@ -1822,7 +1822,7 @@ describe('PythonCodeRuntime — budgets, termination, disposal', () => { bindings: [], }) expect(result.error?.kind).toBe('timeout') - expect(result.error?.message).toContain('CPU budget') + expect(result.error?.message).toContain('CPU time exhausted') expect(result.value).toBeUndefined() }, 15_000)