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:
parent
dfde61aba3
commit
e8886ff8c0
1 changed files with 9 additions and 0 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue