fix(memory): align status manager concurrency test

This commit is contained in:
Vincent Koc
2026-03-24 11:31:35 -07:00
parent 0caafa587f
commit 0cdd4db6e9

View File

@@ -118,7 +118,7 @@ describe("memory manager cache hydration", () => {
await secondManager?.close?.();
});
it("caches status-only managers separately from full managers", async () => {
it("does not identity-cache status-only managers", async () => {
const indexPath = path.join(workspaceDir, "index.sqlite");
const cfg = createMemoryConcurrencyConfig(indexPath);
@@ -127,9 +127,10 @@ describe("memory manager cache hydration", () => {
expect(first).toBeTruthy();
expect(second).toBeTruthy();
expect(Object.is(second, first)).toBe(true);
expect(Object.is(second, first)).toBe(false);
expect(hoisted.providerCreateCalls).toBe(0);
await second?.close?.();
await first?.close?.();
});
});