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:
parent
959f7e4965
commit
928a5ff2ca
1 changed files with 2 additions and 1 deletions
|
|
@ -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>(() =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue