From fba7ac1e8aa1ded0384b89a72aee18c68b0268f5 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 23 Oct 2026 13:45:32 +0200 Subject: [PATCH] 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 --- tests/GameCult.Caching.Tests/CachelessSingleFileTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/GameCult.Caching.Tests/CachelessSingleFileTests.cs b/tests/GameCult.Caching.Tests/CachelessSingleFileTests.cs index a3f391a7..6b4b422a 100644 --- a/tests/GameCult.Caching.Tests/CachelessSingleFileTests.cs +++ b/tests/GameCult.Caching.Tests/CachelessSingleFileTests.cs @@ -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));