mirror of
https://github.com/espressif/openthread.git
synced 2026-08-13 06:07:48 +00:00
[scripts] make BMLR test more reliable (#6387)
In BMLR test, the commissioner may fail to start because the /c/ps COAP message failed to reach Leader due to unstable links. This commit makes sure the links are established before starting the commissioner.
This commit is contained in:
@@ -109,6 +109,8 @@ class BBR_5_11_01(thread_cert.TestCase):
|
||||
self.nodes[COMMISSIONER].start()
|
||||
self.wait_node_state(COMMISSIONER, 'router', 5)
|
||||
|
||||
self.wait_route_established(COMMISSIONER, PBBR)
|
||||
|
||||
self.nodes[COMMISSIONER].commissioner_start()
|
||||
self.simulator.go(10)
|
||||
self.assertEqual('active', self.nodes[COMMISSIONER].commissioner_state())
|
||||
|
||||
Reference in New Issue
Block a user