Tests: declared-lossy id constant; successful-churn gate test races an attach with a long pre-publish check
Not run at this commit. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
da951adce0
commit
bcefcf9382
2 changed files with 5 additions and 2 deletions
|
|
@ -1456,10 +1456,13 @@ namespace GameCult.Caching.Tests
|
|||
rounds++;
|
||||
var store = new RoleStore(_path);
|
||||
store.ReleaseAttach.Set();
|
||||
// A cache holding many records makes the attach's checks before it publishes Cache take long enough to race.
|
||||
var cache = new CultCache(registry);
|
||||
for (var index = 0; index < 20000; index++)
|
||||
cache.Upsert(new IdDeck { Name = "held" + index });
|
||||
using var barrier = new Barrier(2);
|
||||
var takes = 0;
|
||||
var spin = (round % 128) * 20;
|
||||
var spin = (round % 200) * 400;
|
||||
var caller = new Thread(() =>
|
||||
{
|
||||
barrier.SignalAndWait();
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ namespace GameCult.Caching.Tests
|
|||
[Key(2)] public string Colour = string.Empty;
|
||||
}
|
||||
|
||||
private const string WideId = "sha256:f0d9ccd6e9a4a1c8b3a17f5b1ea1ce6b1fcd6a0f3ad1b28f2e1d4f7d91c0a2e3";
|
||||
private const string WideId = "sha256:82c2b721aceb56e00288baab590fabcdd82c3bda44400f7530fa9e29c4e96252";
|
||||
|
||||
private static readonly CultDocumentRegistry NarrowRegistry = CultDocumentRegistry.ForTypes(new[] { typeof(NoteNarrow) });
|
||||
private static readonly CultDocumentRegistry GrownRegistry = CultDocumentRegistry.ForTypes(new[] { typeof(NoteGrown) });
|
||||
|
|
|
|||
Loading…
Reference in a new issue