From de53d721de0fff63c092322ee64637853197b031 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Wed, 21 Jul 2021 11:20:23 -0700 Subject: [PATCH] [tests] fix intermittent failure in Cert_9_2_09_PendingPartition.py (#6833) Keeping network id timeout at 70 can result in ROUTER2 occasionally creating its own partition. Reset back to 120 to avoid occasional test failures. --- tests/scripts/thread-cert/Cert_9_2_09_PendingPartition.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/scripts/thread-cert/Cert_9_2_09_PendingPartition.py b/tests/scripts/thread-cert/Cert_9_2_09_PendingPartition.py index 69781c66d..3452891ef 100755 --- a/tests/scripts/thread-cert/Cert_9_2_09_PendingPartition.py +++ b/tests/scripts/thread-cert/Cert_9_2_09_PendingPartition.py @@ -165,6 +165,11 @@ class Cert_9_2_09_PendingPartition(thread_cert.TestCase): self.assertEqual(self.nodes[ROUTER1].get_state(), 'router') self.assertEqual(self.nodes[ROUTER2].get_state(), 'leader') + # Keeping network id timeout at 70 can result in ROUTER2 + # occasionally creating its own partition. Reset back to 120 + # here to avoid occasional test failures. + self.nodes[ROUTER2].set_network_id_timeout(120) + self.nodes[ROUTER2].commissioner_start() self.simulator.go(3) self.nodes[ROUTER2].send_mgmt_active_set(