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 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-27 17:26:17 +01:00
commit 928a5ff2ca

View file

@ -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<NoteLister>().SchemaId }, ListerEntry(Array.Empty<string>()).Members.Take(1).ToArray(), "narrow-");
var full = NarrowListerRegistry.GetRequired<NoteLister>().ToCatalogEntry();
var passed = ListerEntry(full.CompatibleSchemaIds, full.Members.Take(1).ToArray(), "narrow-");
var before = Fingerprint(path);
Assert.Throws<CultSchemaConflictException>(() =>