File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -284,16 +284,13 @@ def assert_constraint_triggered(
284284 :param expected_metadata: Dictionary of expected metadata fields and values
285285 :raises AssertionError: If constraint was not triggered or metadata is incorrect
286286 """
287- assert "scheduler " in benchmark , "Benchmark missing 'scheduler ' field"
288- scheduler = benchmark ["scheduler " ]
287+ assert "scheduler_state " in benchmark , "Benchmark missing 'scheduler_state ' field"
288+ scheduler_state = benchmark ["scheduler_state " ]
289289
290- assert "state" in scheduler , "Scheduler missing 'state' field"
291- state = scheduler ["state" ]
292-
293- assert "end_processing_constraints" in state , (
294- "State missing 'end_processing_constraints' field"
290+ assert "end_processing_constraints" in scheduler_state , (
291+ "Scheduler state missing 'end_processing_constraints' field"
295292 )
296- constraints = state ["end_processing_constraints" ]
293+ constraints = scheduler_state ["end_processing_constraints" ]
297294
298295 assert constraint_name in constraints , (
299296 f"Constraint '{ constraint_name } ' was not triggered"
You can’t perform that action at this time.
0 commit comments