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:
Meta Vens 2026-10-08 16:58:55 +02:00
commit 3d081f0d3b

View file

@ -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();