Skip to content

Commit 5db0dd3

Browse files
authored
[nexus] fix flaky test 1_2_MATN_TC_10 by increasing wait time (openthread#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.
1 parent 84f6824 commit 5db0dd3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/nexus/test_1_2_MATN_TC_10.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ static constexpr uint32_t kAttachToRouterTime = 200 * 1000;
4949
*/
5050
static constexpr uint32_t kStabilizationTime = 10 * 1000;
5151

52+
/**
53+
* Time to advance for address resolution and ping reply, in milliseconds.
54+
*/
55+
static constexpr uint32_t kAddressResolutionTime = 20 * 1000;
56+
5257
/**
5358
* Time to advance for the BBR selection to complete, in milliseconds.
5459
*/
@@ -298,7 +303,7 @@ void TestMatnTc10(void)
298303
* - Pass Criteria:
299304
* - N/A
300305
*/
301-
nexus.AdvanceTime(kStabilizationTime);
306+
nexus.AdvanceTime(kAddressResolutionTime);
302307

303308
Log("---------------------------------------------------------------------------------------");
304309
Log("Step 8a: BR_1 powers down");

0 commit comments

Comments
 (0)