mirror of
https://github.com/espressif/openthread.git
synced 2026-09-20 16:07:36 +00:00
[test] make test_diag less flaky (#11008)
This commit expects echo of diag commands to make sure the command is received by the node when waiting for the expected output. This helps make this test less flaky.
This commit is contained in:
@@ -936,7 +936,7 @@ class NodeImpl:
|
||||
cmd = cmd.strip()
|
||||
while True:
|
||||
line = self.__readline()
|
||||
if line == cmd:
|
||||
if line.strip() == cmd:
|
||||
break
|
||||
|
||||
logging.warning("expecting echo %r, but read %r", cmd, line)
|
||||
|
||||
Reference in New Issue
Block a user