mirror of
https://github.com/espressif/openthread.git
synced 2026-08-30 13:59:54 +00:00
[tests] fix occasional failures in Cert_6_1_03_RouterAttachConnectivity.py (#2580)
This commit adds necessary delay to allow the router topology to establish links with neighboring routers.
This commit is contained in:
@@ -95,9 +95,14 @@ class Cert_6_1_3_RouterAttachConnectivity(unittest.TestCase):
|
||||
|
||||
for i in range(2, 5):
|
||||
self.nodes[i].start()
|
||||
self.simulator.go(5)
|
||||
|
||||
self.simulator.go(5)
|
||||
|
||||
for i in range(2, 5):
|
||||
self.assertEqual(self.nodes[i].get_state(), 'router')
|
||||
|
||||
self.simulator.go(config.MAX_ADVERTISEMENT_INTERVAL)
|
||||
|
||||
self.nodes[ED].start()
|
||||
self.simulator.go(5)
|
||||
self.assertEqual(self.nodes[ED].get_state(), 'child')
|
||||
|
||||
Reference in New Issue
Block a user