[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:
Yakun Xu
2024-12-09 14:43:00 -08:00
committed by GitHub
parent d540fc7f43
commit ca318d2936
2 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -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)