From d2caebf39cc405e24bec82834396bc33c2da9d3f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 18 Jul 2022 17:58:42 +1000 Subject: [PATCH] autotest: increase time allowed for getting statustexts frsky is run i9n a thread - and signficiant speedsup seem to adversely affect it --- Tools/autotest/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 49a2f465f10..19aa1e63b55 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -11043,10 +11043,11 @@ switch value''' received_frsky_texts = [] last_len_received_statustexts = 0 + timeout = 7 * self.speedup # it can take a *long* time to get these messages down! while True: self.drain_mav() now = self.get_sim_time_cached() - if now - tstart > 60: # it can take a *long* time to get these messages down! + if now - tstart > timeout: raise NotAchievedException("Did not get statustext in time") frsky.update() data = frsky.get_data(0x5000) # no timestamping on this data, so we can't catch legitimate repeats.