File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,12 @@ def test_execute_task_graph():
3434 # Verify that parallel tasks (task2 and task3) started within a short time of each other
3535 parallel_start_diff = abs (exp_args_list [1 ].start_time - exp_args_list [2 ].start_time )
3636 print (f"parallel_start_diff: { parallel_start_diff } " )
37- assert parallel_start_diff < 2 # Allow for a small delay
37+ assert parallel_start_diff < 5 , "Parallel tasks should start within 5 seconds of each other"
3838
3939 # Ensure that the entire task graph took the expected amount of time
4040 total_time = exp_args_list [- 1 ].end_time - exp_args_list [0 ].start_time
41- assert (
42- total_time >= TASK_TIME * 3
43- ) # Since the critical path involves at least 1.5 seconds of work
41+ # Since the critical path involves at least 1.5 seconds of work
42+ assert total_time >= TASK_TIME * 3 , "Total time should be at least 3 times the task time"
4443
4544
4645def test_add_dependencies ():
You can’t perform that action at this time.
0 commit comments