mirror of
https://github.com/espressif/openthread.git
synced 2026-08-29 21:39:54 +00:00
[nexus] improve robustness of test 5.2.1 (#12402)
Changes 'IsChild()' check to 'IsAttached()' for REED_1 in test 5.2.1. REED_1 may quickly transition beyond the child state (e.g., to router) after attaching, causing 'IsChild()' to occasionally fail depending on the timing of the check. Using 'IsAttached()' ensures the node is successfully connected to the network regardless of its specific role.
This commit is contained in:
@@ -174,7 +174,7 @@ void Test5_2_1(void)
|
||||
*/
|
||||
reed1.Join(dut);
|
||||
nexus.AdvanceTime(kAttachToChildTime);
|
||||
VerifyOrQuit(reed1.Get<Mle::Mle>().IsChild());
|
||||
VerifyOrQuit(reed1.Get<Mle::Mle>().IsAttached());
|
||||
|
||||
Log("---------------------------------------------------------------------------------------");
|
||||
Log("Step 3: Router_1 (DUT)");
|
||||
|
||||
Reference in New Issue
Block a user