Skip to content

Commit

Permalink
tests: fuzzer: stdcm: remove requests with no stop at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
eckter committed Apr 5, 2024
1 parent 01610d3 commit 5d56285
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/fuzzer/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def make_stdcm_payload(scenario: Scenario, path: List[Tuple[str, float]], rollin
"percentage": 0,
},
}
res["steps"][-1]["duration"] = 1 # Force a stop at the end
allowance_value = make_random_allowance_value(0)
if allowance_value["value_type"] != "time" and random.randint(0, 2) == 0:
res["standard_allowance"] = allowance_value
Expand Down

0 comments on commit 5d56285

Please sign in to comment.