mirror of
https://github.com/espressif/openthread.git
synced 2026-08-17 07:59:51 +00:00
[tests] fix occasional failures in Cert_5_2_07_REEDSynchronization.py (#2588)
This commit adds delay to allow topology to form and allow the REED to establish receive-only links.
This commit is contained in:
@@ -65,7 +65,7 @@ class Cert_5_2_7_REEDSynchronization(unittest.TestCase):
|
||||
|
||||
for i in range(2, 17):
|
||||
self.nodes[i].start()
|
||||
self.simulator.go(5)
|
||||
self.simulator.go(10)
|
||||
|
||||
for i in range(2, 17):
|
||||
self.assertEqual(self.nodes[i].get_state(), 'router')
|
||||
@@ -75,7 +75,7 @@ class Cert_5_2_7_REEDSynchronization(unittest.TestCase):
|
||||
self.nodes[DUT_REED].add_whitelist(self.nodes[DUT_ROUTER1].get_addr64(), config.RSSI['LINK_QULITY_1'])
|
||||
|
||||
self.nodes[DUT_REED].start()
|
||||
self.simulator.go(5)
|
||||
self.simulator.go(config.MAX_ADVERTISEMENT_INTERVAL)
|
||||
self.assertEqual(self.nodes[DUT_REED].get_state(), 'child')
|
||||
|
||||
# The DUT_REED must not send a coap message here.
|
||||
|
||||
Reference in New Issue
Block a user