From 0debeab1b3391243cf6d6f841c7357f4c2f70add Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 14 Oct 2026 14:08:06 +0200 Subject: [PATCH] Bearing-marker tests: restate the stance after a departure, bring the claimer into hearing A departure drops the observer's IFF override (it lasts the sitting), so the departed-hostile case re-sets it to stand for faction-derived hostility; the gun reveal in the claim fixture needs the target within the Eye's hearing. The previous commit's two new tests fail. Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/ClaimTests.cs | 2 +- tests/Aetheria.Shared.Tests/ContactRevealTests.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Aetheria.Shared.Tests/ClaimTests.cs b/tests/Aetheria.Shared.Tests/ClaimTests.cs index 8f0e96545..ca517bf48 100644 --- a/tests/Aetheria.Shared.Tests/ClaimTests.cs +++ b/tests/Aetheria.Shared.Tests/ClaimTests.cs @@ -146,7 +146,7 @@ public sealed partial class ContactRevealTests public void ClaimedClassesNameTheClaim() { var locker = Add(float3(0, 0, 0), new[] { "Locker", "Gun" }); - var target = Add(float3(0, 0, 200), new[] { "Eye" }); + var target = Add(float3(30, 0, 40), new[] { "Eye" }); var lockItem = locker.Equipment.Single(i => i.Behaviors.Any(b => b is LockWeapon)); var gunItem = Guns(locker)[0]; var claimed = DataOf("Eye"); diff --git a/tests/Aetheria.Shared.Tests/ContactRevealTests.cs b/tests/Aetheria.Shared.Tests/ContactRevealTests.cs index fb8d1ef7e..1d51456d4 100644 --- a/tests/Aetheria.Shared.Tests/ContactRevealTests.cs +++ b/tests/Aetheria.Shared.Tests/ContactRevealTests.cs @@ -1376,6 +1376,7 @@ public sealed partial class ContactRevealTests : IDisposable ShowOnly(e, 1f, gun); Assert.True(e.Visibility * o.PassiveInfo(e.Position.xz, 1f) <= _items.GameplaySettings.TargetDetectionInfoThreshold, "fixture: its last light is below o's gate"); _zone.Remove(e); + o.SetIff(e, true); // a departure drops the stance (it lasts the sitting); this stands for hostility the faction rule keeps var memory = _items.GameplaySettings.BearingMemory; var lapsed = false; for (var i = 0; i < 200 && !lapsed; i++)