[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:
Yakun Xu
2019-08-01 08:52:50 -07:00
committed by Jonathan Hui
parent fee0468ca9
commit 74bfb58d2a
+3
View File
@@ -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])