From 5db0dd3dcbfb8a220d066412f4e6ed1119a90f35 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Wed, 29 Apr 2026 13:36:11 -0700 Subject: [PATCH] [nexus] fix flaky test 1_2_MATN_TC_10 by increasing wait time (#13007) This commit addresses an occasional failure in test 1_2_MATN_TC_10 where the Router's ping reply was not found in Step 8. - Increased the time advanced in Step 8 from 10 seconds (kStabilizationTime) to 20 seconds (2 * kStabilizationTime). - This allows more time for address resolution (NS/NA) and packet transmission in the simulated environment. - Verified that the test passes consistently with 100 consecutive successful runs after applying this fix. --- tests/nexus/test_1_2_MATN_TC_10.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/nexus/test_1_2_MATN_TC_10.cpp b/tests/nexus/test_1_2_MATN_TC_10.cpp index 3ae2b771d..ac34ac9c4 100644 --- a/tests/nexus/test_1_2_MATN_TC_10.cpp +++ b/tests/nexus/test_1_2_MATN_TC_10.cpp @@ -49,6 +49,11 @@ static constexpr uint32_t kAttachToRouterTime = 200 * 1000; */ static constexpr uint32_t kStabilizationTime = 10 * 1000; +/** + * Time to advance for address resolution and ping reply, in milliseconds. + */ +static constexpr uint32_t kAddressResolutionTime = 20 * 1000; + /** * Time to advance for the BBR selection to complete, in milliseconds. */ @@ -298,7 +303,7 @@ void TestMatnTc10(void) * - Pass Criteria: * - N/A */ - nexus.AdvanceTime(kStabilizationTime); + nexus.AdvanceTime(kAddressResolutionTime); Log("---------------------------------------------------------------------------------------"); Log("Step 8a: BR_1 powers down");