[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:
Simon Lin
2021-04-02 18:25:12 -07:00
committed by GitHub
parent e54691c3ff
commit 09c95f9a32
2 changed files with 16 additions and 0 deletions
@@ -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())