From d103797ba04d838f42a92abdbbf965becb400a2d Mon Sep 17 00:00:00 2001 From: rongli Date: Wed, 29 Aug 2018 00:26:45 +0800 Subject: [PATCH] [tests] fix unstable Cert_5_3_03 (#2998) --- tests/scripts/thread-cert/Cert_5_3_03_AddressQuery.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/scripts/thread-cert/Cert_5_3_03_AddressQuery.py b/tests/scripts/thread-cert/Cert_5_3_03_AddressQuery.py index 914baa7d0..93eb09c17 100755 --- a/tests/scripts/thread-cert/Cert_5_3_03_AddressQuery.py +++ b/tests/scripts/thread-cert/Cert_5_3_03_AddressQuery.py @@ -149,11 +149,12 @@ class Cert_5_3_3_AddressQuery(unittest.TestCase): assert msg is None, "The Address Query Request is not expected." # 5 + # Power off ROUTER3 and wait for leader to expire its Router ID. + # In this topology, ROUTER3 has two neighbors (Leader and DUT_ROUTER2), + # so the wait time is (MAX_NEIGHBOR_AGE (100s) + worst propagation time (32s * 15) for bad routing +\ + # INFINITE_COST_TIMEOUT (90s) + transmission time + extra redundancy), totally ~700s. self.nodes[ROUTER3].stop() - - # Wait for the Leader to expire its Router ID. - # MAX_NEIGHBOR_AGE + INFINITE_COST_TIMEOUT + ID_REUSE_DELAY + propagation time + transmission time ~ 580s. - self.simulator.go(580) + self.simulator.go(700) # Flush the message queue to avoid possible impact on follow-up verification. dut_messages = self.simulator.get_messages_sent_by(DUT_ROUTER2)