From e0614c6963e78b7d2bc1a0d1ba7f693066d087c5 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Tue, 17 Feb 2026 14:39:38 -0600 Subject: [PATCH] [nexus] fix intermittent failure in test 6.1.2 (#12472) This commit fixes an intermittent failure in Nexus test 6.1.2 by setting the REED's router upgrade threshold to 0. By default, a REED may attempt to upgrade to a Router if the number of active routers in the network is below a certain threshold. In this test scenario, we want to ensure the REED remains a child until the appropriate point in the test sequence. Setting the threshold to 0 prevents premature promotion due to low router count, ensuring more deterministic test behavior. --- tests/nexus/test_6_1_2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/nexus/test_6_1_2.cpp b/tests/nexus/test_6_1_2.cpp index f9c578628..90d219938 100644 --- a/tests/nexus/test_6_1_2.cpp +++ b/tests/nexus/test_6_1_2.cpp @@ -115,6 +115,7 @@ void RunTest6_1_2(Topology aTopology, const char *aJsonFile) VerifyOrQuit(leader.Get().IsLeader()); reed.Join(leader); + reed.Get().SetRouterUpgradeThreshold(0); nexus.AdvanceTime(kReedToRouterTime); VerifyOrQuit(reed.Get().IsChild());