From 2a77a312db716fa5c41edc08d86d76ab852600b2 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 25 Oct 2026 21:49:23 +0100 Subject: [PATCH] Caching tests: the per-entry-point attach test upserts its later record under a fixed key The previous code commit's AJournalOnTheAttachingThreadCannotReachItsStore failed all 21 cases: AddAsync mints its own key, so "later" never appeared. That commit builds; its new test is red. Co-Authored-By: Claude Sonnet 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 d7d9eb93..cb175fa1 100644 --- a/tests/GameCult.Caching.Tests/CachelessSingleFileTests.cs +++ b/tests/GameCult.Caching.Tests/CachelessSingleFileTests.cs @@ -1279,7 +1279,7 @@ namespace GameCult.Caching.Tests Assert.That(journalError!.Message, Does.StartWith(op is "writedoc" or "writerecord" ? ReentryRefusal : JournalRefusal)); Assert.That(store.IsDirty, Is.False, "nothing the cache never admitted is staged"); - await cache.AddAsync(new IdDeck { Name = "later" }); + await cache.UpsertAsync(typeof(IdDeck), new IdDeck { Name = "later" }, new CultRecordKey("later")); Assert.DoesNotThrow(() => cache.FlushAllBackingStores()); using var fresh = new CultCache(registry, Codec(registry)); fresh.AddBackingStore(Open());