[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)
+1 -1
View File
@@ -138,7 +138,7 @@ class VirtualTime(BaseSimulator):
END_OF_TIME = 0x7FFFFFFF
PORT_OFFSET = int(os.getenv('PORT_OFFSET', '0'))
BLOCK_TIMEOUT = 4
BLOCK_TIMEOUT = 10
RADIO_ONLY = os.getenv('RADIO_DEVICE') is not None
NCP_SIM = os.getenv('NODE_TYPE', 'sim') == 'ncp-sim'