From 44f1a8bf29cfa3c3bfcbf00c915d548671875750 Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Tue, 16 Jun 2020 09:11:34 +0800 Subject: [PATCH] [tests] use longer timeouts for simulation tests (#5094) * use longer duration for pexpect and socket * use 10s timeouts --- tests/scripts/thread-cert/node.py | 4 ++-- tests/scripts/thread-cert/simulator.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/scripts/thread-cert/node.py b/tests/scripts/thread-cert/node.py index 32e710ddc..6aab83093 100755 --- a/tests/scripts/thread-cert/node.py +++ b/tests/scripts/thread-cert/node.py @@ -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) diff --git a/tests/scripts/thread-cert/simulator.py b/tests/scripts/thread-cert/simulator.py index 36f1c3854..1fc38daf3 100644 --- a/tests/scripts/thread-cert/simulator.py +++ b/tests/scripts/thread-cert/simulator.py @@ -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'