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:
parent
2a77a312db
commit
74021e2326
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue