Caching tests: the write-through-a-getter test uses AddAsync (CultCache has no Upsert)

The previous commit's tests do not build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-23 13:45:32 +02:00
commit fba7ac1e8a

View file

@ -747,7 +747,7 @@ namespace GameCult.Caching.Tests
{
var registry = CultDocumentRegistry.ForTypes(new[] { typeof(TapDoc) });
using var unrelated = new CultCache(registry);
TapDoc.Hook = () => unrelated.Upsert(new TapDoc { Name = "other" });
TapDoc.Hook = () => _ = unrelated.AddAsync(new TapDoc { Name = "other" });
var error = Assert.Catch(() => new SingleFileMessagePackBackingStore(_path).WriteDocument(new CultRecordKey("d"), new TapDoc { Name = "d" }, registry: registry));