RunSaveTests: the product round-trip uses the fixture's one faction
The first commit's new fact built a second Faction and Game() requires exactly one; that commit's ALotsProductSurvivesTheRunSave failed (1004 of 1005 passed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
978632bc26
commit
3d081f0d3b
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ public sealed class RunSaveTests : IDisposable
|
|||
using (var cache = AetheriaStores.Open(Catalog, catalogWritable: true))
|
||||
{
|
||||
var lamp = new CultRecordRef<CraftedItemData>(cache.Upsert(new GearData { Name = "Lamp" }).Key);
|
||||
var maker = cache.Upsert(new Faction { Name = "Maker", ShortName = "MAK" });
|
||||
var maker = cache.RefOf(cache.GetAll<Faction>().Single());
|
||||
product = new CultRecordRef<FactionProductData>(cache.Upsert(
|
||||
new FactionProductData { Name = "Lamp Prime", Design = lamp, Manufacturer = maker }).Key);
|
||||
cache.FlushAsync().Wait();
|
||||
|
|
|
|||
Loading…
Reference in a new issue