mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:00:45 +00:00
test(plugins): address discovery review feedback
This commit is contained in:
@@ -258,6 +258,7 @@ async function expectRejectedPackageExtensionEntry(params: {
|
||||
}
|
||||
|
||||
afterEach(() => {
|
||||
vi.restoreAllMocks();
|
||||
clearPluginDiscoveryCache();
|
||||
cleanupTrackedTempDirs(tempDirs);
|
||||
});
|
||||
|
||||
@@ -102,8 +102,9 @@ function buildScopedDiscoveryCacheKey(params: {
|
||||
env: params.env,
|
||||
});
|
||||
const workspaceKey = roots.workspace ?? "";
|
||||
const bundledRoot = roots.stock ?? "";
|
||||
const ownershipUid = params.ownershipUid ?? currentUid();
|
||||
return `scoped::${workspaceKey}::${ownershipUid ?? "none"}::${JSON.stringify(loadPaths)}`;
|
||||
return `scoped::${workspaceKey}::${bundledRoot}::${ownershipUid ?? "none"}::${JSON.stringify(loadPaths)}`;
|
||||
}
|
||||
|
||||
function buildSharedDiscoveryCacheKey(params: {
|
||||
|
||||
Reference in New Issue
Block a user