From 90f1775cb98ed290ad1893ed03f5103c93b9f3c8 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 19:49:56 +0200 Subject: [PATCH] LockWarningTests: a paint waiting in the inbox does not outlive a deactivation Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/LockWarningTests.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Aetheria.Shared.Tests/LockWarningTests.cs b/tests/Aetheria.Shared.Tests/LockWarningTests.cs index e6555c37e..c12b724ae 100644 --- a/tests/Aetheria.Shared.Tests/LockWarningTests.cs +++ b/tests/Aetheria.Shared.Tests/LockWarningTests.cs @@ -252,5 +252,12 @@ public sealed class LockWarningTests : IDisposable b.Activate(); b.Update(.01f); Assert.Empty(b.IncomingLocks); // the paint received while inactive was never stored + + // A paint still waiting in the inbox when the ship deactivates does not survive to the next activation. + Aim(locker, b, .5f); + b.Deactivate(); + b.Activate(); + b.Update(.01f); + Assert.Empty(b.IncomingLocks); } }