avoid sorting issues in assert

This commit is contained in:
burnettk 2023-04-25 22:34:52 -04:00
parent a74e4d4070
commit c6e9772f01
1 changed files with 3 additions and 1 deletions

View File

@ -398,7 +398,9 @@ class TestProcessInstanceProcessor(BaseTest):
ready_or_waiting_tasks = processor.get_all_ready_or_waiting_tasks() ready_or_waiting_tasks = processor.get_all_ready_or_waiting_tasks()
assert len(ready_or_waiting_tasks) == 2 assert len(ready_or_waiting_tasks) == 2
ready_or_waiting_task_identifiers = [t.task_spec.name for t in ready_or_waiting_tasks] ready_or_waiting_task_identifiers = [t.task_spec.name for t in ready_or_waiting_tasks]
assert ["top_level_subprocess_script", "top_level_subprocess"] == ready_or_waiting_task_identifiers assert sorted(["top_level_subprocess_script", "top_level_subprocess"]) == sorted(
ready_or_waiting_task_identifiers
)
processor.do_engine_steps(save=True, execution_strategy_name="greedy") processor.do_engine_steps(save=True, execution_strategy_name="greedy")
ready_or_waiting_tasks = processor.get_all_ready_or_waiting_tasks() ready_or_waiting_tasks = processor.get_all_ready_or_waiting_tasks()