test(otopcua): Once re-discovery reruns one pass per reconnect + comment tidy (follow-up B)

This commit is contained in:
Joseph Doherty
2026-06-26 12:38:52 -04:00
parent ce34816a50
commit a1a655e6c9
2 changed files with 50 additions and 4 deletions
@@ -805,10 +805,11 @@ public sealed class DriverInstanceActor : ReceiveActor, IWithTimers
Context.Parent.Tell(new DiscoveredNodesReady(_driverInstanceId, nodes));
// Honour the driver's re-discovery policy. A Once driver discovers synchronously in its single
// DiscoverAsync, so a single published pass is complete — do not schedule another tick. (Never never
// reaches here — StartDiscovery returns before the first tick.) UntilStable falls through to the
// stop-on-stable + attempt-cap logic below.
// Honour the driver's re-discovery policy. A Once driver runs a single post-connect pass per
// (re)connect regardless of whether DiscoverAsync is synchronous or async — one published pass is
// complete, so the retry loop is skipped (no further tick scheduled). (Never never reaches here —
// StartDiscovery returns before the first tick.) UntilStable falls through to the stop-on-stable +
// attempt-cap logic below.
if (discovery.RediscoverPolicy == DiscoveryRediscoverPolicy.Once)
{
_log.Debug("DriverInstance {Id}: RediscoverPolicy=Once — single discovery pass, not scheduling another", _driverInstanceId);