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 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-02 18:00:52 +02:00
commit bc15dba81b

View file

@ -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")));