Test: the directory store keeps a marked manifest on a partial flush, so only the single file drops back
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
aa6b11006f
commit
9c62187562
1 changed files with 3 additions and 1 deletions
|
|
@ -724,9 +724,11 @@ namespace GameCult.Caching.Tests
|
|||
store.PushAll();
|
||||
Assert.That(HeaderOf(path), Is.EqualTo(marked));
|
||||
|
||||
// The directory store writes only its dirty pages and keeps a marked manifest; the single file is whole-store.
|
||||
if (directory) return;
|
||||
store.Push(new CultStoredDocument(new CultRecordKey("d"), "2026-09-29T00:00:00.0000000+00:00", descriptor, EmptyDeck("d")));
|
||||
store.PushAll();
|
||||
Assert.That(HeaderOf(path), Is.Not.EqualTo(marked), "a whole-store flush decides by what the store now holds");
|
||||
Assert.That(HeaderOf(path), Is.EqualTo("cultcache.store.v1"), "a whole-store flush decides by what the store now holds");
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue