From 06ba26707d2017e7ee728607ccdbb04c290b2055 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 9 May 2026 09:25:58 +0100 Subject: [PATCH] test: tighten run-vitest env assertions --- test/scripts/run-vitest.test.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/scripts/run-vitest.test.ts b/test/scripts/run-vitest.test.ts index 485d4cdcd6e..5d7feb23d23 100644 --- a/test/scripts/run-vitest.test.ts +++ b/test/scripts/run-vitest.test.ts @@ -67,7 +67,7 @@ describe("scripts/run-vitest", () => { }, "darwin", ).env, - ).toMatchObject({ + ).toEqual({ OPENCLAW_LOCAL_CHECK: "1", PATH: "/usr/bin", }); @@ -83,7 +83,7 @@ describe("scripts/run-vitest", () => { }, "linux", ).env, - ).toMatchObject({ + ).toEqual({ CI: "true", OPENCLAW_LOCAL_CHECK: "0", PATH: "/usr/bin", @@ -99,8 +99,9 @@ describe("scripts/run-vitest", () => { }, "darwin", ).env, - ).toMatchObject({ + ).toEqual({ OPENCLAW_TEST_PROJECTS_SERIAL: "1", + PATH: "/usr/bin", RAYON_NUM_THREADS: "1", TOKIO_WORKER_THREADS: "1", }); @@ -117,8 +118,9 @@ describe("scripts/run-vitest", () => { }, "darwin", ).env, - ).toMatchObject({ + ).toEqual({ OPENCLAW_VITEST_MAX_WORKERS: "2", + PATH: "/usr/bin", RAYON_NUM_THREADS: "8", TOKIO_WORKER_THREADS: "6", });