From 74021e232685853a74e0fe9288f6207b82085af4 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 25 Oct 2026 22:08:06 +0100 Subject: [PATCH] Caching tests: after the refused journal call the attached store still pulls The folded-in writedoc case used to assert the refusal left the attach's registry in place and a later PullAll succeeded; the per-entry-point test now asserts that for every entry point. Co-Authored-By: Claude Sonnet 5.5 --- tests/GameCult.Caching.Tests/CachelessSingleFileTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/GameCult.Caching.Tests/CachelessSingleFileTests.cs b/tests/GameCult.Caching.Tests/CachelessSingleFileTests.cs index cb175fa1..48f5a031 100644 --- a/tests/GameCult.Caching.Tests/CachelessSingleFileTests.cs +++ b/tests/GameCult.Caching.Tests/CachelessSingleFileTests.cs @@ -1281,6 +1281,7 @@ namespace GameCult.Caching.Tests await cache.UpsertAsync(typeof(IdDeck), new IdDeck { Name = "later" }, new CultRecordKey("later")); Assert.DoesNotThrow(() => cache.FlushAllBackingStores()); + Assert.DoesNotThrow(() => store.PullAll(), "the refused call did not take back the attach's registry"); using var fresh = new CultCache(registry, Codec(registry)); fresh.AddBackingStore(Open()); string[] Keys(CultCache from) => from.AllStoredDocuments.Select(document => document.Key.Value).OrderBy(key => key, StringComparer.Ordinal).ToArray();