Caching tests: the persisted descriptor carries its own content hash

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-22 22:14:21 +02:00
commit eabb50e68c

View file

@ -80,6 +80,7 @@ namespace GameCult.Caching.Tests
{
var catalog = CultDocumentRegistry.Shared.GetRequired<RefListHolder>().ToCatalogEntry();
catalog.SchemaId = "persisted.tests.reflist_holder.v1";
catalog.ContentHash = "sha256:persisted-by-1.0.x";
catalog.CompatibleSchemaIds = new[] { CultDocumentRegistry.Shared.GetRequired<RefListHolder>().SchemaId };
persistedItems(catalog.Members.Single(member => member.Slot == 1));
return CultDocumentRegistry.Shared.ResolvePersistedSchemaReport(catalog.SchemaId, new[] { catalog });