From 8f184a8f69f0edd44726b41eff411422b14b4389 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 13 Oct 2026 07:30:48 +0200 Subject: [PATCH] contact-hud: NothingReadsSelection reads the paint inbox on every tick A warning lives one tick, so the end-state read could not see a paint selection wrote; a hand mutant that paints on SetTarget survived. Builds (test-only change). Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/ContactRevealTests.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/ContactRevealTests.cs b/tests/Aetheria.Shared.Tests/ContactRevealTests.cs index 21f7d1d27..e22afb009 100644 --- a/tests/Aetheria.Shared.Tests/ContactRevealTests.cs +++ b/tests/Aetheria.Shared.Tests/ContactRevealTests.cs @@ -1233,9 +1233,14 @@ public sealed partial class ContactRevealTests : IDisposable selector.SetTarget(selected); Assert.Same(selected, selector.Target.Value.Entity); // fixture: it is selected - for (var i = 0; i < 20; i++) Tick(.1f); + var paints = 0; + for (var i = 0; i < 20; i++) + { + Tick(.1f); + paints += selected.IncomingPaints.Count; // a warning lives one tick, so it is read on every tick + } - Assert.Empty(selected.IncomingPaints); + Assert.Equal(0, paints); Assert.False(selected.ContactOf(selector).Detected); Assert.Empty(selected.RevealedSubjects); }