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:
parent
45529db85d
commit
fba7ac1e8a
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue