mirror of
https://github.com/espressif/openthread.git
synced 2026-07-30 07:37:46 +00:00
[tests] add delay for test_diag (#4046)
This change seems to make the test_diag case stable. The root cause may be that distcheck enables address sanitizer, which may cause the program to respond slower.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#
|
||||
|
||||
import unittest
|
||||
import time
|
||||
|
||||
import node
|
||||
import config
|
||||
@@ -95,6 +96,8 @@ class TestDiag(unittest.TestCase):
|
||||
for case in cases:
|
||||
self.node.send_command(case[0])
|
||||
self.simulator.go(1)
|
||||
if type(self.simulator).__name__ == 'VirtualTime':
|
||||
time.sleep(0.1)
|
||||
self.node._expect(case[1])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user