CachelessSingleFileTests: the gated store reads the attached registry without requiring one (7d25d92b did not pass: the gate test threw)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-23 01:49:31 +02:00
commit 3704ce097c

View file

@ -86,9 +86,9 @@ namespace GameCult.Caching.Tests
{
if (Interlocked.Exchange(ref _held, 1) == 0)
{
RegistryBeforeWait = Registry;
RegistryBeforeWait = AttachedRegistry;
Release.Wait(TimeSpan.FromSeconds(30));
RegistryAfterWait = Registry;
RegistryAfterWait = AttachedRegistry;
}
var store = CultDocumentMessagePackSerialization.ReadStore(data);
CultDocumentMessagePackSerialization.RequireSingleFileFormat(store.Snapshot);