autotest: increase allowed time for mission item download

Because we're involving round-trip times to the Python and back, we need to allow more time to pass on the autopilot when downloading very large missions.  Add a factor based on speedup
This commit is contained in:
Peter Barker 2022-06-11 15:27:55 +10:00 committed by Andrew Tridgell
parent ad4fc316ec
commit e02d50d0e8
1 changed files with 3 additions and 1 deletions

View File

@ -7183,7 +7183,9 @@ Also, ignores heartbeats not from our target system'''
tstart = self.get_sim_time_cached()
remaining_to_receive = set(range(0, m.count))
next_to_request = 0
timeout = (10 + m.count/10)
timeout = m.count / 10
timeout *= self.speedup / 10.0
timeout += 10
while True:
if self.get_sim_time_cached() - tstart > timeout:
raise NotAchievedException("timeout downloading type=%s" %