Test: the directory merge test starts from a stale content hash
The directory store's preference for the entry being written was not pinned: nothing distinguished the entry's hash. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
59f9e9aedb
commit
1a4289cac6
1 changed files with 1 additions and 0 deletions
|
|
@ -192,6 +192,7 @@ namespace GameCult.Caching.Tests
|
|||
var path = DirectoryStore("merged.cc");
|
||||
var manifest = CultDocumentMessagePackSerialization.DeserializeSnapshot(File.ReadAllBytes(path));
|
||||
var entry = manifest.SchemaCatalog.Single();
|
||||
entry.ContentHash = "stale";
|
||||
manifest.Records.Single().SchemaId = "vectors.old.id";
|
||||
entry.CompatibleSchemaIds = new[] { entry.SchemaId, "vectors.old.id" };
|
||||
File.WriteAllBytes(path, CultDocumentMessagePackSerialization.SerializeSnapshot(manifest));
|
||||
|
|
|
|||
Loading…
Reference in a new issue