mirror of
https://github.com/espressif/openthread.git
synced 2026-10-06 07:47:41 +00:00
[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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user