[tests] use common definition for router startup delay (#7685)

This commit is contained in:
Jonathan Hui
2022-05-12 10:20:16 -07:00
committed by GitHub
parent f6f3a932fc
commit edd65d5cf0
158 changed files with 297 additions and 218 deletions
+2 -1
View File
@@ -29,6 +29,7 @@
import logging
import unittest
import config
import thread_cert
LEADER = 1
@@ -62,7 +63,7 @@ class Test_MacScan(thread_cert.TestCase):
self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
self.nodes[ROUTER].start()
self.simulator.go(10)
self.simulator.go(config.ROUTER_STARTUP_DELAY)
self.assertEqual(self.nodes[ROUTER].get_state(), 'router')
results = self.nodes[LEADER].scan(result=True)