From 09050ae920c1dc92aed12a4f5216dcad7be0adc2 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 30 Sep 2026 23:13:27 +0200 Subject: [PATCH] Tests: drop the flaky failed-belt-task test AFailedBeltTaskSurfacesOnce swapped a belt's asteroids while that belt's task could still be running, so it failed in 5 of 8 runs including unmutated ones (Soul S1). It tests belt-task machinery that codex/mining deletes (Cut 1, 22a54ccb), so it goes rather than being reworked. Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/RunStartTests.cs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/RunStartTests.cs b/tests/Aetheria.Shared.Tests/RunStartTests.cs index 5fd3636ea..b459c9c77 100644 --- a/tests/Aetheria.Shared.Tests/RunStartTests.cs +++ b/tests/Aetheria.Shared.Tests/RunStartTests.cs @@ -630,25 +630,6 @@ public sealed class RunStartTests : IDisposable } } - // A belt task that fails surfaces once, on the next tick, and not on every tick after it. - [Fact] - public void AFailedBeltTaskSurfacesOnce() - { - var zone = Arena(new Scenario { Ambient = false }); // no ships: nothing but the zone runs - var (key, _) = zone.AsteroidBelts.First(); - var data = (AsteroidBeltData) zone.Planets[key]; - var asteroids = data.Asteroids; - zone.Update(.02f); - var failures = 0; - data.Asteroids = asteroids.Append(asteroids[0]).ToArray(); // one asteroid more than the belt has room for - zone.Update(.02f); // starts a task that will fail - try { zone.Update(.02f); } catch (AggregateException) { failures++; } // settles it, starts another - data.Asteroids = asteroids; - try { zone.Update(.02f); } catch (AggregateException) { failures++; } // settles that one - Assert.True(failures >= 1, "the failed task surfaced"); - for (var tick = 0; tick < 10; tick++) zone.Update(.02f); - } - private LoadoutGenerator PreludeGenerator() => new LoadoutGenerator(ref _items.Random, _items, _galaxy, _galaxy.Entrance, _protagonist, .5f);