mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 22:14:34 +00:00
perf(test): speed gateway suite resets with unique config roots
This commit is contained in:
@@ -221,10 +221,10 @@ export function installGatewayTestHooks(options?: { scope?: "test" | "suite" })
|
|||||||
if (scope === "suite") {
|
if (scope === "suite") {
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
await setupGatewayTestHome();
|
await setupGatewayTestHome();
|
||||||
await resetGatewayTestState({ uniqueConfigRoot: false });
|
await resetGatewayTestState({ uniqueConfigRoot: true });
|
||||||
});
|
});
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await resetGatewayTestState({ uniqueConfigRoot: false });
|
await resetGatewayTestState({ uniqueConfigRoot: true });
|
||||||
}, 60_000);
|
}, 60_000);
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
await cleanupGatewayTestHome({ restoreEnv: false });
|
await cleanupGatewayTestHome({ restoreEnv: false });
|
||||||
|
|||||||
Reference in New Issue
Block a user