mirror of
https://github.com/espressif/openthread.git
synced 2026-08-14 06:37:46 +00:00
[tests] use common definition for router startup delay (#7685)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user