mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-22 23:38:51 +00:00
fix(test): prevent SQLite worker teardown crashes (#114567)
This commit is contained in:
parent
44bcaa263c
commit
8d6971ecc9
2 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue