[tests] use longer timeouts for simulation tests (#5094)

* use longer duration for pexpect and socket
* use 10s timeouts
This commit is contained in:
Simon Lin
2020-06-15 18:11:34 -07:00
committed by GitHub
parent 79c564fc6e
commit 44f1a8bf29
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -130,7 +130,7 @@ class Node:
print("%s" % cmd)
self.pexpect = pexpect.popen_spawn.PopenSpawn(cmd, timeout=4)
self.pexpect = pexpect.popen_spawn.PopenSpawn(cmd, timeout=10)
# Add delay to ensure that the process is ready to receive commands.
timeout = 0.4
@@ -211,7 +211,7 @@ class Node:
cmd += ' %d' % nodeid
print("%s" % cmd)
self.pexpect = pexpect.spawn(cmd, timeout=4)
self.pexpect = pexpect.spawn(cmd, timeout=10)
# Add delay to ensure that the process is ready to receive commands.
time.sleep(0.2)