Skip to content

Commit

Permalink
fix bug in pytest sequenced eventual validations
Browse files Browse the repository at this point in the history
  • Loading branch information
nimazareian committed Jun 23, 2024
1 parent bb8dd4c commit 0505164
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/software/simulated_tests/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ def create_validation_proto_helper(validation_proto_set, validation):

# Validate the eventually validations. Eventually valids
for validation_sequence in list(eventually_validation_sequence_set):
for validation in validation_sequence:
# NOTE: It is critical that we iterate over a copy of the validation_sequence
# (using the `list` constructor) since we will be modifying the original list
# within the loop
for validation in list(validation_sequence):

# Add to validation_proto_set and get status
status = create_validation_proto_helper(
Expand Down

0 comments on commit 0505164

Please sign in to comment.