From ce46a40153a19fcb7410682b2372cf6bce16f29a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 27 Oct 2026 09:22:18 +0100 Subject: [PATCH] Tests: rename the seeding loop variable that shadowed the record (414cf6e1 does not build the Caching tests) Co-Authored-By: Claude Sonnet 5.5 --- tests/GameCult.Caching.Tests/RestampOnWriteTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/GameCult.Caching.Tests/RestampOnWriteTests.cs b/tests/GameCult.Caching.Tests/RestampOnWriteTests.cs index d8ac7ffc..3ee99a33 100644 --- a/tests/GameCult.Caching.Tests/RestampOnWriteTests.cs +++ b/tests/GameCult.Caching.Tests/RestampOnWriteTests.cs @@ -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().ToCatalogEntry();