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:
Meta Vens 2026-09-29 20:09:05 +02:00
commit 9ed61dd290

View file

@ -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]