From a403b44ab52a4d2355d7906ad482833a5e80041d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 23:43:03 +0200 Subject: [PATCH] LockWarningTests: a full lock fires and spends the launcher's lock; read the emitter's own Lock only below it --- tests/Aetheria.Shared.Tests/LockWarningTests.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/LockWarningTests.cs b/tests/Aetheria.Shared.Tests/LockWarningTests.cs index 7fc914266..6ad6bdc58 100644 --- a/tests/Aetheria.Shared.Tests/LockWarningTests.cs +++ b/tests/Aetheria.Shared.Tests/LockWarningTests.cs @@ -162,12 +162,11 @@ public sealed class LockWarningTests : IDisposable Aim(locker, b); Tick(dt); - Assert.Equal(expectedLock, LauncherOf(locker).Lock, 4); + // A full lock fires the launcher and spends the lock, so the emitter's own Lock is read only below it. + if (expectedLock < 1f) Assert.Equal(expectedLock, LauncherOf(locker).Lock, 4); Tick(0f); - var strength = Assert.Single(b.IncomingLocks).Strength; - Assert.Equal(expectedLock, strength, 4); - Assert.Equal(LauncherOf(locker).Lock, strength, 4); + Assert.Equal(expectedLock, Assert.Single(b.IncomingLocks).Strength, 4); } // The lock's progress terms: direction (lerp ^ DirectionImpact) and sensor info (info ^ SensorImpact), each