Mesh tests: the variant record carries its empty payload

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-22 17:03:07 +02:00
commit 0d043f7347

View file

@ -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<byte>();
snapshot.Records[0].Variant = new CultVariantDelta("item:base", Array.Empty<CultVariantOverride>());
File.WriteAllBytes(_path, CultDocumentMessagePackSerialization.SerializeSnapshot(snapshot));
var before = File.ReadAllBytes(_path);