mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-26 01:11:37 +00:00
fix(ci): reset deep test runtime state
This commit is contained in:
@@ -98,3 +98,12 @@ export function getActivePluginRegistryKey(): string | null {
|
||||
export function getActivePluginRegistryVersion(): number {
|
||||
return state.version;
|
||||
}
|
||||
|
||||
export function resetPluginRuntimeStateForTest(): void {
|
||||
const emptyRegistry = createEmptyPluginRegistry();
|
||||
state.registry = emptyRegistry;
|
||||
state.httpRouteRegistry = emptyRegistry;
|
||||
state.httpRouteRegistryPinned = false;
|
||||
state.key = null;
|
||||
state.version += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user