mirror of
https://github.com/openclaw/openclaw.git
synced 2026-11-16 13:08:44 +00:00
fix(test): isolate Gateway database credential selection
Reset the simulated process selection before each credential case, matching the sibling engine suite. A preceding real SQLite Gateway boot otherwise makes the first case fail in the non-isolated worker. Preserve teardown and the within-case replacement rejection assertions. Reproduced the first-case conflict on the frozen base under Node and pinned Bun. The ordered real-Gateway sequence and engine/context sibling suites now pass all 18 cases per runtime; targeted formatting, lint and whitespace checks pass. Production and schema changes: none.
This commit is contained in:
parent
b135516219
commit
5d5ca9d2ba
1 changed files with 3 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { afterEach, describe, expect, it } from "vitest";
|
||||
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
||||
import {
|
||||
sanitizeEnvVars,
|
||||
sanitizeExplicitSandboxEnvVars,
|
||||
|
|
@ -20,6 +20,8 @@ const config = (key: string) => ({
|
|||
},
|
||||
});
|
||||
|
||||
beforeEach(resetDatabaseEngineSelectionForTest);
|
||||
|
||||
afterEach(async () => {
|
||||
await closePostgresPool();
|
||||
resetDatabaseEngineSelectionForTest();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue