From 1cb515ea2065ec312af61f049ccc4ff2277e3257 Mon Sep 17 00:00:00 2001 From: Greyson LaLonde Date: Wed, 21 Jan 2026 02:26:15 -0500 Subject: [PATCH] chore: update test assumption --- lib/crewai/tests/test_flow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/crewai/tests/test_flow.py b/lib/crewai/tests/test_flow.py index 6926e15d5..50b2316fd 100644 --- a/lib/crewai/tests/test_flow.py +++ b/lib/crewai/tests/test_flow.py @@ -1204,7 +1204,8 @@ def test_complex_and_or_branching(): # Final should be after both 2a and 2b - assert execution_order[-1] == "final" + # Note: we don't assert final is last because branch_1c has no downstream + # dependencies and can complete after final due to parallel execution assert execution_order.index("final") > execution_order.index("branch_2a") assert execution_order.index("final") > execution_order.index("branch_2b")