From bc15dba81b74d137ac4c2388bc1906093a7c4243 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 2 Oct 2026 18:00:52 +0200 Subject: [PATCH] Test: the owner's-id case of the moved-record lay-back publishes the owner's catalog entry Co-Authored-By: Claude Opus 5.5 --- tests/GameCult.Caching.Tests/ElementIdTests.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/GameCult.Caching.Tests/ElementIdTests.cs b/tests/GameCult.Caching.Tests/ElementIdTests.cs index ffb9390b..470ee4fc 100644 --- a/tests/GameCult.Caching.Tests/ElementIdTests.cs +++ b/tests/GameCult.Caching.Tests/ElementIdTests.cs @@ -305,7 +305,11 @@ namespace GameCult.Caching.Tests if (newerStoredAt) moved.StoredAt = DateTimeOffset.UtcNow.AddMinutes(5).ToString("O"); if (ownersId) - moved.SchemaId = Registry.GetRequired(typeof(IdDeck)).SchemaId; + { + var owner = Registry.GetRequired(typeof(IdDeck)); + moved.SchemaId = owner.SchemaId; + snapshot.SchemaCatalog = snapshot.SchemaCatalog.Append(owner.ToCatalogEntry()).ToArray(); + } File.WriteAllBytes(path, CultDocumentMessagePackSerialization.SerializeSnapshot(snapshot)); cache.Commit(batch => batch.Upsert(typeof(IdDeck), Deck("other"), new CultRecordKey("other")));