feat(otopcua): add ITagDiscovery.RediscoverPolicy + per-driver assignments (follow-up B)

This commit is contained in:
Joseph Doherty
2026-06-26 12:18:44 -04:00
parent c2c368dcec
commit a378b572af
7 changed files with 66 additions and 0 deletions
@@ -203,6 +203,18 @@ public sealed class FocasScaffoldingTests
drv.DriverInstanceId.ShouldBe("drv-1");
}
/// <summary>
/// Verifies FOCAS opts into retry-until-stable post-connect re-discovery — its
/// FixedTree subtree is populated asynchronously by a background loop a couple of
/// seconds after connect, so a single DiscoverAsync pass would miss it.
/// </summary>
[Fact]
public void RediscoverPolicy_is_UntilStable()
{
var drv = new FocasDriver(new FocasDriverOptions(), "drv-1");
drv.RediscoverPolicy.ShouldBe(DiscoveryRediscoverPolicy.UntilStable);
}
/// <summary>Verifies InitializeAsync parses device addresses correctly.</summary>
[Fact]
public async Task InitializeAsync_parses_device_addresses()