mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
perf(test): optimize heavy suites and stabilize lock timing
This commit is contained in:
@@ -37,6 +37,7 @@ const supportsVmForks = Number.isFinite(nodeMajor) ? nodeMajor < 24 : true;
|
||||
const useVmForks =
|
||||
process.env.OPENCLAW_TEST_VM_FORKS === "1" ||
|
||||
(process.env.OPENCLAW_TEST_VM_FORKS !== "0" && !isWindows && supportsVmForks);
|
||||
const disableIsolation = process.env.OPENCLAW_TEST_NO_ISOLATE === "1";
|
||||
const runs = [
|
||||
...(useVmForks
|
||||
? [
|
||||
@@ -48,6 +49,7 @@ const runs = [
|
||||
"--config",
|
||||
"vitest.unit.config.ts",
|
||||
"--pool=vmForks",
|
||||
...(disableIsolation ? ["--isolate=false"] : []),
|
||||
...unitIsolatedFiles.flatMap((file) => ["--exclude", file]),
|
||||
],
|
||||
},
|
||||
@@ -146,6 +148,7 @@ const WARNING_SUPPRESSION_FLAGS = [
|
||||
"--disable-warning=ExperimentalWarning",
|
||||
"--disable-warning=DEP0040",
|
||||
"--disable-warning=DEP0060",
|
||||
"--disable-warning=MaxListenersExceededWarning",
|
||||
];
|
||||
|
||||
function resolveReportDir() {
|
||||
|
||||
Reference in New Issue
Block a user