From bb2f49f3583780ad22a0f9a48a8312c6fb9796fe Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 7 Oct 2026 01:24:29 +0200 Subject: [PATCH] Boss gate tests: the unsold BossHull case builds its own unsold hull, as the catalog has none Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/RunGoalTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/RunGoalTests.cs b/tests/Aetheria.Shared.Tests/RunGoalTests.cs index 897d647aa..48abb3043 100644 --- a/tests/Aetheria.Shared.Tests/RunGoalTests.cs +++ b/tests/Aetheria.Shared.Tests/RunGoalTests.cs @@ -107,8 +107,9 @@ public sealed partial class RunStartTests var galaxy = DemoGalaxy(1); var antagonist = Zhestokost(galaxy); var sold = SoldShipHulls(); - var unsold = _cache.GetAll().FirstOrDefault(hull => hull.HullType == HullType.Ship && !sold.Contains(hull)); - Assert.True(unsold != null, "the catalog needs a ship hull no product sells for this test"); + // A ship hull no product sells, dearer than any that is sold: the fallback must not pick it. + var unsold = new HullData { Name = "Unsold Test Hull", HullType = HullType.Ship, Price = sold.Max(hull => hull.Price) + 1 }; + _cache.Upsert(unsold); antagonist.BossHull = _cache.RefOf(unsold); var log = new List(); var items = LoggingItems(log);