From 928a5ff2ca3296312be67547d8f85474f310f57c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 27 Oct 2026 17:26:17 +0100 Subject: [PATCH] Tests: the shape probe passes the registry's compatible ids so the lent entry would own it The lent-shape test omitted the old id from the passed entry, so the base code refused it for the id and not for the shape. It now lists them, making the registry's wider entry the only thing that could own the record. Co-Authored-By: Claude Opus 5.5 --- tests/GameCult.Caching.Tests/RestampOnWriteTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/GameCult.Caching.Tests/RestampOnWriteTests.cs b/tests/GameCult.Caching.Tests/RestampOnWriteTests.cs index ed4d1f41..00bf196f 100644 --- a/tests/GameCult.Caching.Tests/RestampOnWriteTests.cs +++ b/tests/GameCult.Caching.Tests/RestampOnWriteTests.cs @@ -643,7 +643,8 @@ namespace GameCult.Caching.Tests public void ALentRegistryNeverWidensTheShapeOfThePassedEntry(bool lend) { var path = SeedListerStore(ListerDriftId, "tests.restamp_lister", ListerDriftId); - var passed = ListerEntry(new[] { NarrowListerRegistry.GetRequired().SchemaId }, ListerEntry(Array.Empty()).Members.Take(1).ToArray(), "narrow-"); + var full = NarrowListerRegistry.GetRequired().ToCatalogEntry(); + var passed = ListerEntry(full.CompatibleSchemaIds, full.Members.Take(1).ToArray(), "narrow-"); var before = Fingerprint(path); Assert.Throws(() =>