From 12a7864a4a6ce8a5ca51a7674fcf5477c0c4e979 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 17 Oct 2026 07:01:49 +0200 Subject: [PATCH] RunStartTests: commit the maker assembly override so the scenario's ItemManager reads it Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/RunStartTests.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/Aetheria.Shared.Tests/RunStartTests.cs b/tests/Aetheria.Shared.Tests/RunStartTests.cs index 408ce8655..ff6b4a18b 100644 --- a/tests/Aetheria.Shared.Tests/RunStartTests.cs +++ b/tests/Aetheria.Shared.Tests/RunStartTests.cs @@ -49,11 +49,16 @@ public sealed partial class RunStartTests : IDisposable // These scenarios measure what the gear does, not the luck of a maker's assembly: every maker assembles well and // with the spread that makes two lots of one design differ (the scenarios compare a heated drive with its twin), // so the ceiling (min(part, assembly)) rarely bites and no scenario stands on one maker's dice. - foreach (var faction in _cache.GetAll()) + var makers = _cache.GetAll().ToArray(); + foreach (var faction in makers) { faction.AssemblyMean = .75f; faction.AssemblyDeviation = .15f; } + _cache.Commit(batch => + { + foreach (var faction in makers) batch.Upsert(typeof(Faction), faction, _cache.RefOf(faction).Key); + }); var authored = AuthoredSettings.Load(repo); _zoneSettings = authored.Read("ZoneSettings");