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 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-25 22:08:06 +01:00
commit 74021e2326

View file

@ -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();