fix(test): prevent SQLite worker teardown crashes (#114567)

This commit is contained in:
Peter Steinberger
2026-07-27 08:34:01 -04:00
committed by GitHub
parent 44bcaa263c
commit 8d6971ecc9
2 changed files with 7 additions and 0 deletions

View File

@@ -613,6 +613,10 @@ describe("scoped vitest configs", () => {
expectForkedIsolatedRunner(defaultInfraConfig);
});
it("keeps native SQLite runtime config tests in forked workers", () => {
expectForkedNonIsolatedRunner(defaultRuntimeConfig);
});
it("keeps process, runtime config, and tooling lanes off the openclaw runtime setup", () => {
expect(normalizeConfigPaths(requireTestConfig(defaultProcessConfig).setupFiles)).toEqual([
"test/setup.ts",

View File

@@ -8,6 +8,9 @@ export function createRuntimeConfigVitestConfig(env?: Record<string, string | un
includeOpenClawRuntimeSetup: false,
name: "runtime-config",
passWithNoTests: true,
// Native SQLite handles can abort V8 when threaded workers tear down.
// Forks keep database lifetimes inside a disposable process.
pool: "forks",
});
return {
...config,