From 2ed544115b03ba7d9961d5ea9a93a979baefab87 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Mon, 20 Apr 2026 06:59:21 -0700 Subject: [PATCH] [nexus] fix intermittent failure in dns_client_config_auto_start test (#12940) This commit fixes an intermittent failure in the Nexus test 'dns_client_config_auto_start'. The test was occasionally failing because the REED node was not upgrading to the Router role within the previous 15-second stabilization period. The Router role transition can take up to 120 seconds due to the default 'ROUTER_SELECTION_JITTER' parameter. This commit increases 'kStabilizationTime' to 200 seconds to ensure the node has ample time to become a router before the test proceeds to verify its DNS configuration. --- tests/nexus/test_dns_client_config_auto_start.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nexus/test_dns_client_config_auto_start.cpp b/tests/nexus/test_dns_client_config_auto_start.cpp index 1216c9c1d..6ddaddf6e 100644 --- a/tests/nexus/test_dns_client_config_auto_start.cpp +++ b/tests/nexus/test_dns_client_config_auto_start.cpp @@ -48,7 +48,7 @@ static constexpr uint32_t kJoinNetworkTime = 10 * 1000; /** * Time to advance for the network to stabilize, in milliseconds. */ -static constexpr uint32_t kStabilizationTime = 15 * 1000; +static constexpr uint32_t kStabilizationTime = 200 * 1000; /** * Default DNS server address for testing.