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:
parent
0a98004bc4
commit
bc15dba81b
1 changed files with 5 additions and 1 deletions
|
|
@ -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")));
|
||||
|
|
|
|||
Loading…
Reference in a new issue