From 0d043f734776eaa6a9e590acade1b02a73be2eb7 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 22 Oct 2026 17:03:07 +0200 Subject: [PATCH] Mesh tests: the variant record carries its empty payload Co-Authored-By: Claude Sonnet 5.5 --- tests/GameCult.Mesh.Tests/CultMeshSingleFileWriteGuardTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/GameCult.Mesh.Tests/CultMeshSingleFileWriteGuardTests.cs b/tests/GameCult.Mesh.Tests/CultMeshSingleFileWriteGuardTests.cs index 45979e4c..4312e0cb 100644 --- a/tests/GameCult.Mesh.Tests/CultMeshSingleFileWriteGuardTests.cs +++ b/tests/GameCult.Mesh.Tests/CultMeshSingleFileWriteGuardTests.cs @@ -107,6 +107,7 @@ public sealed class CultMeshSingleFileWriteGuardTests Write("item:a", 1); var snapshot = CultDocumentMessagePackSerialization.DeserializeSnapshot(File.ReadAllBytes(_path)); snapshot.FormatVersion = CultPersistedStoreSnapshot.FormatV2; + snapshot.Records[0].Payload = Array.Empty(); snapshot.Records[0].Variant = new CultVariantDelta("item:base", Array.Empty()); File.WriteAllBytes(_path, CultDocumentMessagePackSerialization.SerializeSnapshot(snapshot)); var before = File.ReadAllBytes(_path);