Tests: rename the seeding loop variable that shadowed the record (414cf6e1 does not build the Caching tests)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-27 09:22:18 +01:00
commit ce46a40153

View file

@ -566,8 +566,8 @@ namespace GameCult.Caching.Tests
var snapshot = Snapshot(path);
snapshot.SchemaCatalog.Single().SchemaId = snapshot.SchemaCatalog.Single().ContentHash = ListerOldId;
snapshot.SchemaCatalog.Single().CompatibleSchemaIds = new[] { ListerOldId };
foreach (var record in snapshot.Records)
record.SchemaId = ListerOldId;
foreach (var seeded in snapshot.Records)
seeded.SchemaId = ListerOldId;
File.WriteAllBytes(path, CultDocumentMessagePackSerialization.SerializeSnapshot(snapshot));
var registry = CultDocumentRegistry.ForTypes(new[] { typeof(NoteLister) });
var full = registry.GetRequired<NoteLister>().ToCatalogEntry();