mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 10:47:46 +00:00
[tests] use longer timeouts for simulation tests (#5094)
* use longer duration for pexpect and socket * use 10s timeouts
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user