Skip to content

Commit f0bdcb8

Browse files
committed
relax constraints for ray time testing
1 parent 0dcb150 commit f0bdcb8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/experiments/test_ray.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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

4645
def test_add_dependencies():

0 commit comments

Comments
 (0)