From 87d39dbf5e41919a2818ee70a9d44802c6751023 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Tue, 7 Apr 2026 14:20:18 -0700 Subject: [PATCH] [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. --- tests/nexus/test_1_4_TREL_TC_4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nexus/test_1_4_TREL_TC_4.cpp b/tests/nexus/test_1_4_TREL_TC_4.cpp index f52967da8..0275c8db0 100644 --- a/tests/nexus/test_1_4_TREL_TC_4.cpp +++ b/tests/nexus/test_1_4_TREL_TC_4.cpp @@ -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.