Boss tests store Loadouts through the cache batch at Loadouts.KeyOf (the cache has no keyed Upsert)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-18 18:40:09 +02:00
commit fc992f5abe
2 changed files with 9 additions and 5 deletions

View file

@ -139,7 +139,7 @@ public sealed class LoadoutCommitCommandTests : IDisposable
case "mod-design":
var mod = Copy(cache.GetAll<EquippableItemData>().Single(d => d.Name == fit.designName));
mod.Name = "Mod gadget";
cache.Upsert(mod.GetType(), mod, new CultRecordKey("mod-ship:mod.gadget"));
Assert.True(cache.Commit(batch => batch.Upsert(mod.GetType(), mod, new CultRecordKey("mod-ship:mod.gadget"))));
break;
}
cache.FlushAsync().Wait();