autotest: eliminate race condition in plane fence static test

This commit is contained in:
Peter Barker 2021-01-18 12:05:46 +11:00 committed by Peter Barker
parent e9c6c08a97
commit 5848ff7512
1 changed files with 1 additions and 1 deletions

View File

@ -1152,9 +1152,9 @@ class AutoTestPlane(AutoTest):
self.assert_fence_sys_status(True, True, True)
self.mavproxy.send("fence clear\n")
self.mavproxy.expect("fence removed")
self.wait_sensor_state(mavutil.mavlink.MAV_SYS_STATUS_GEOFENCE, False, False, True)
if self.get_parameter("FENCE_TOTAL") != 0:
raise NotAchievedException("Expected zero points remaining")
self.assert_fence_sys_status(False, False, True)
except Exception as e:
self.progress("Exception caught:")