From a91bd1f7cfa849c18a55a4ac35983a177bdbdf46 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 9 Oct 2026 02:13:15 +0200 Subject: [PATCH] Tests: the replay resets the drives to unnamed terms, not stripped ones, as they shipped Large Drive and Small Drive shipped with unnamed Quality terms on their flat stats; the command keeps those exponents. The reset stripped them, so the new exponent check read the Thruster precedent instead. Co-Authored-By: Claude Sonnet 5.5 --- tests/Aetheria.Shared.Tests/RolesBackfillCommandTests.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Aetheria.Shared.Tests/RolesBackfillCommandTests.cs b/tests/Aetheria.Shared.Tests/RolesBackfillCommandTests.cs index 40fbe130e..a34248df0 100644 --- a/tests/Aetheria.Shared.Tests/RolesBackfillCommandTests.cs +++ b/tests/Aetheria.Shared.Tests/RolesBackfillCommandTests.cs @@ -57,7 +57,10 @@ public sealed class RolesBackfillCommandTests : IDisposable foreach (var (_, stat) in CatalogRoleTests.StatsOf(design)) { if (stat.Min != stat.Max) stat.Min = stat.Max = (stat.Min + stat.Max) / 2f; - stat.Terms.RemoveAll(t => t.Source == StatSource.Quality); + // The drives shipped with unnamed Quality terms on their flat stats (roles-migrate); the command keeps those + // exponents and names them. The other four shipped with no term at all. + if (design.Name.EndsWith(" Drive", StringComparison.Ordinal)) foreach (var term in stat.Terms.Where(t => t.Source == StatSource.Quality)) term.Role = null; + else stat.Terms.RemoveAll(t => t.Source == StatSource.Quality); } design.Roles = new List(); changed.Add(design);