test_l3_longevity.py : change timeout for pexpect to 1 second

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-05-21 06:37:37 -06:00
parent df5296ff7c
commit 10a99692a7

View File

@@ -386,7 +386,7 @@ class L3VariableTime(Realm):
ser = serial.Serial(self.ap_port, int(self.ap_baud), timeout=5)
ss = SerialSpawn(ser)
ss.sendline(str(self.ap_cmd))
ss.expect([pexpect.TIMEOUT], timeout=2) # do not detete line, waits for output
ss.expect([pexpect.TIMEOUT], timeout=1) # do not detete line, waits for output
ap_stats = ss.before.decode('utf-8','ignore')
print("ap_stats {}".format(ap_stats))