fix(ui): reentrancy guard on Health/AlarmSummary poll timers (arch-review S3)

Claude-Session: https://claude.ai/code/session_01MtdgwpEeCUn6cUA5f1LMPj
This commit is contained in:
Joseph Doherty
2026-07-10 05:01:27 -04:00
parent bd6c310825
commit adc488a9f9
4 changed files with 50 additions and 4 deletions
@@ -0,0 +1,17 @@
using ZB.MOM.WW.ScadaBridge.CentralUI.Services;
using Xunit;
namespace ZB.MOM.WW.ScadaBridge.CentralUI.Tests;
public class PollGateTests
{
[Fact]
public void TryEnter_SecondCallWhileHeld_ReturnsFalse()
{
var gate = new PollGate();
Assert.True(gate.TryEnter());
Assert.False(gate.TryEnter());
gate.Exit();
Assert.True(gate.TryEnter());
}
}