mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:10:44 +00:00
test(plugins): expect fresh derived registries
This commit is contained in:
@@ -542,7 +542,7 @@ describe("plugin registry facade", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("caches config-scoped derived registries when the persisted registry is missing", () => {
|
||||
it("derives fresh config-scoped registries when the persisted registry is missing", () => {
|
||||
const stateDir = makeTempDir();
|
||||
const workspaceDir = makeTempDir();
|
||||
const bundledRoot = makeTempDir();
|
||||
@@ -574,9 +574,10 @@ describe("plugin registry facade", () => {
|
||||
).length;
|
||||
|
||||
expect(first.source).toBe("derived");
|
||||
expect(second).toBe(first);
|
||||
expect(second.source).toBe("derived");
|
||||
expect(second).not.toBe(first);
|
||||
expect(manifestReadsAfterFirst).toBeGreaterThan(0);
|
||||
expect(manifestReadsAfterSecond).toBe(manifestReadsAfterFirst);
|
||||
expect(manifestReadsAfterSecond).toBeGreaterThan(manifestReadsAfterFirst);
|
||||
});
|
||||
|
||||
it("falls back to the derived registry when persisted reads are disabled", async () => {
|
||||
|
||||
Reference in New Issue
Block a user