Skip to content

Commit 1424ce6

Browse files
authored
[uss_qualifier/flight_planning] Allow 'NotPlanned' as status during cleanup (#1403)
1 parent 780073c commit 1424ce6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

monitoring/uss_qualifier/scenarios/flight_planning/test_steps.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,13 @@ def cleanup_flights(
483483
continue
484484
scenario.record_queries(resp.queries)
485485

486-
if resp.flight_plan_status != FlightPlanStatus.Closed:
486+
if resp.flight_plan_status not in [
487+
FlightPlanStatus.Closed,
488+
FlightPlanStatus.NotPlanned,
489+
]:
487490
check.record_failed(
488491
summary=f"Failed to clean up flight {flight_id} from {flight_planner.participant_id}",
489-
details=f"Deletion of flight {flight_id} returned a status of '{resp.flight_plan_status}' ({FlightPlanStatus.Closed} wanted)",
492+
details=f"Deletion of flight {flight_id} returned a status of '{resp.flight_plan_status}' ({FlightPlanStatus.Closed} or {FlightPlanStatus.NotPlanned} wanted)",
490493
query_timestamps=[q.request.timestamp for q in resp.queries],
491494
)
492495

0 commit comments

Comments
 (0)