Tests: fill the racing cache through AddAsync
Does not build-verify at the previous commit (Upsert is not on CultCache). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
bcefcf9382
commit
5d66bb0ad4
1 changed files with 1 additions and 1 deletions
|
|
@ -1459,7 +1459,7 @@ namespace GameCult.Caching.Tests
|
|||
// 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 });
|
||||
cache.AddAsync(new IdDeck { Name = "held" + index }).GetAwaiter().GetResult();
|
||||
using var barrier = new Barrier(2);
|
||||
var takes = 0;
|
||||
var spin = (round % 200) * 400;
|
||||
|
|
|
|||
Loading…
Reference in a new issue