mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:50:44 +00:00
fix: include startup plan in lookup timing
This commit is contained in:
@@ -233,6 +233,9 @@ describe("loadPluginLookUpTable", () => {
|
||||
expect(table.startup.pluginIds).toEqual(["telegram"]);
|
||||
expect(table.metrics.indexPluginCount).toBe(1);
|
||||
expect(table.metrics.manifestPluginCount).toBe(1);
|
||||
expect(table.metrics.totalMs).toBe(
|
||||
metadataSnapshot.metrics.totalMs + table.metrics.startupPlanMs,
|
||||
);
|
||||
});
|
||||
|
||||
it("rebuilds when a provided metadata snapshot has a stale plugin policy", async () => {
|
||||
|
||||
@@ -110,6 +110,7 @@ export function loadPluginLookUpTable(params: LoadPluginLookUpTableParams): Plug
|
||||
metrics: {
|
||||
...metadataSnapshot.metrics,
|
||||
startupPlanMs,
|
||||
totalMs: metadataSnapshot.metrics.totalMs + startupPlanMs,
|
||||
startupPluginCount: pluginIds.length,
|
||||
deferredChannelPluginCount: configuredDeferredChannelPluginIds.length,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user