[nexus] increase kAttachToRouterTime in 1_4_TREL_TC_4 (#12852)

Nexus test 1_4_TREL_TC_4 occasionally fails during topology formation
because the router promotion timeout (kAttachToRouterTime) was set to
120 seconds.

The MLE router selection jitter (OPENTHREAD_CONFIG_MLE_ROUTER_SELECTION
_JITTER) defaults to 120 seconds. Since the jitter timer starts after
successful attachment as a child, 120 seconds is insufficient when the
maximum jitter is selected, leading to a race condition.

This commit increases kAttachToRouterTime to 200 seconds, matching the
value used in most other Nexus tests and providing sufficient time for
router promotion to complete reliably.
This commit is contained in:
Jonathan Hui
2026-04-07 16:20:18 -05:00
committed by GitHub
parent d2aba43057
commit 87d39dbf5e
+1 -1
View File
@@ -47,7 +47,7 @@ static constexpr uint32_t kFormNetworkTime = 13 * 1000;
/**
* Time to advance for a node to join as a child and upgrade to a router, in milliseconds.
*/
static constexpr uint32_t kAttachToRouterTime = 120 * 1000;
static constexpr uint32_t kAttachToRouterTime = 200 * 1000;
/**
* Time to advance for the network to reach steady state.