autotest: add delays around CAN tests - there are races

this delay shouldn't exist at all.  But without extending this we get a different node ID being allocated (125 vs the expected 124)
This commit is contained in:
Peter Barker 2023-05-17 10:07:47 +10:00 committed by Peter Barker
parent d4c5908773
commit a710a75b6b
1 changed files with 2 additions and 0 deletions

View File

@ -8173,6 +8173,7 @@ Also, ignores heartbeats not from our target system'''
start_sitl_args["customisations"] = [sup_binary[1], args]
start_sitl_args["supplementary"] = True
sup_prog_link = util.start_SITL(sup_binary[0], **start_sitl_args)
time.sleep(3)
self.sup_prog.append(sup_prog_link) # add to list
self.expect_list_add(sup_prog_link) # add to expect list
else:
@ -8182,6 +8183,7 @@ Also, ignores heartbeats not from our target system'''
start_sitl_args["customisations"] = [self.sup_binaries[instance][1], args]
start_sitl_args["supplementary"] = True
sup_prog_link = util.start_SITL(self.sup_binaries[instance][0], **start_sitl_args)
time.sleep(3)
self.sup_prog[instance] = sup_prog_link # add to list
self.expect_list_add(sup_prog_link) # add to expect list