C2a test: a flattened variant that holds override ids keeps the flush marked
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e8886ff8c0
commit
9ed61dd290
1 changed files with 10 additions and 0 deletions
|
|
@ -758,6 +758,16 @@ namespace GameCult.Caching.Tests
|
|||
}
|
||||
|
||||
Assert.That(HeaderOf(withIds), Is.EqualTo("cultcache.store.v3"));
|
||||
|
||||
// Flattened, the variant is a plain record holding the ids its override brought; the base holds none.
|
||||
using (var cache = Open(withIds))
|
||||
{
|
||||
cache.FlattenAsync(new CultRecordKey("v")).GetAwaiter().GetResult();
|
||||
cache.Remove(new CultRecordKey("e"));
|
||||
cache.FlushAllBackingStores();
|
||||
}
|
||||
|
||||
Assert.That(HeaderOf(withIds), Is.EqualTo("cultcache.store.v3"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue