C2a test: a reloaded variant holding override ids keeps the whole-store flush marked

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-29 20:03:22 +02:00
commit e8886ff8c0

View file

@ -749,6 +749,15 @@ namespace GameCult.Caching.Tests
}
Assert.That(HeaderOf(withIds), Is.EqualTo("cultcache.store.v3"));
// Reloaded, the variant is the record the store keeps: a whole-store flush beside an empty deck still marks the file.
using (var cache = Open(withIds))
{
cache.UpsertAsync(typeof(IdDeck), EmptyDeck("e"), new CultRecordKey("e")).GetAwaiter().GetResult();
cache.FlushAllBackingStores();
}
Assert.That(HeaderOf(withIds), Is.EqualTo("cultcache.store.v3"));
}
[Test]