From 7c1b1cd3d8bd87fd62b33bb48f3b80d5089f8039 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 29 Sep 2026 21:27:28 +0200 Subject: [PATCH] Tick the zone before reading the cooldown in the stance tests BurstCount is set by the first Execute, so a trigger pulled with no tick has no burst pending. The tests now run one tick and read whether the cooldown started. Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/IffAndCombatTests.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/IffAndCombatTests.cs b/tests/Aetheria.Shared.Tests/IffAndCombatTests.cs index 1d3863b50..814ab0176 100644 --- a/tests/Aetheria.Shared.Tests/IffAndCombatTests.cs +++ b/tests/Aetheria.Shared.Tests/IffAndCombatTests.cs @@ -250,7 +250,9 @@ public sealed class IffAndCombatTests : IDisposable weapon.Activate(); - Assert.True(weapon.CanFire); // Trigger() was safed: no burst was started + zone.Update(.01f); + + Assert.True(weapon.CanFire); // Trigger() was safed: no burst fired, so no cooldown } [Fact] @@ -265,8 +267,9 @@ public sealed class IffAndCombatTests : IDisposable shooter.SetIff(target, true); weapon.Activate(); + zone.Update(.01f); - Assert.False(weapon.CanFire); // Trigger() ran: a burst is pending + Assert.False(weapon.CanFire); // Trigger() ran: the burst fired and the cooldown runs } [Fact] @@ -278,8 +281,9 @@ public sealed class IffAndCombatTests : IDisposable var weapon = (InstantWeapon) shooter.Equipment.Single(e => e.Behaviors.Any(b => b is Weapon)).Behaviors.Single(b => b is Weapon); weapon.Activate(); + zone.Update(.01f); - Assert.False(weapon.CanFire); // Trigger() ran: a burst is pending + Assert.False(weapon.CanFire); // Trigger() ran: the burst fired and the cooldown runs } [Fact]