From 7437b13a5b99522bd4e8ec78af97b6630d74da6b Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 11 Oct 2026 01:21:05 +0200 Subject: [PATCH] TheEnvelopeIsWhatTheGrantAllows: let the grant settle one tick Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/BrownoutTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Aetheria.Shared.Tests/BrownoutTests.cs b/tests/Aetheria.Shared.Tests/BrownoutTests.cs index f5ac1b073..a262d41e3 100644 --- a/tests/Aetheria.Shared.Tests/BrownoutTests.cs +++ b/tests/Aetheria.Shared.Tests/BrownoutTests.cs @@ -168,6 +168,7 @@ public sealed class BrownoutTests : IDisposable ship.Equipment.Single(e => e.Data.Name == "Consumer").UpdatePerformance(); ship.MovementDirection = float2(0, -1); ship.Update(1f); + ship.Update(1f); // the envelope is derived before the power bus steps, from the grant the last tick left Assert.True(thruster.Thrust > 1f && thruster.Thrust < .9f * thruster.NominalThrust, "fixture: the grant is partial"); var expected = thruster.Thrust / ship.Mass; Assert.InRange(ship.Envelope.Reverse, expected * .9999f, expected * 1.0001f);