mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 05:41:37 +00:00
fix(test): prevent SQLite worker teardown crashes (#114567)
This commit is contained in:
committed by
GitHub
parent
44bcaa263c
commit
8d6971ecc9
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user