mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 20:18:28 +00:00
perf(test): remove resetModules from auth/models/subagent suites
This commit is contained in:
@@ -395,7 +395,7 @@ async function waitForSubagentCompletion(runId: string, waitTimeoutMs: number) {
|
||||
}
|
||||
}
|
||||
|
||||
export function resetSubagentRegistryForTests() {
|
||||
export function resetSubagentRegistryForTests(opts?: { persist?: boolean }) {
|
||||
subagentRuns.clear();
|
||||
resumedRuns.clear();
|
||||
stopSweeper();
|
||||
@@ -405,7 +405,9 @@ export function resetSubagentRegistryForTests() {
|
||||
listenerStop = null;
|
||||
}
|
||||
listenerStarted = false;
|
||||
persistSubagentRuns();
|
||||
if (opts?.persist !== false) {
|
||||
persistSubagentRuns();
|
||||
}
|
||||
}
|
||||
|
||||
export function addSubagentRunForTests(entry: SubagentRunRecord) {
|
||||
|
||||
Reference in New Issue
Block a user