From eb37937b7c876ae80bcc06f32c106fc1ad235137 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 4 Jul 2023 12:00:23 -0300 Subject: [PATCH] Increase test timeouts Seems these were set too low, and causing tests to fail. Change-Id: Ib02f47ad91d5e28abe2bb171a0d5356510afdadd Signed-off-by: Daniel Arndt --- osm_lcm/tests/test_vim_workflows.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/osm_lcm/tests/test_vim_workflows.py b/osm_lcm/tests/test_vim_workflows.py index 7ec5d18..515d3ad 100644 --- a/osm_lcm/tests/test_vim_workflows.py +++ b/osm_lcm/tests/test_vim_workflows.py @@ -45,8 +45,10 @@ from temporalio.client import WorkflowFailureError from temporalio.testing import WorkflowEnvironment from temporalio.worker import Worker -TASK_TIMEOUT = timedelta(seconds=0.5) -EXECUTION_TIMEOUT = timedelta(seconds=1) +# Prevent the tasks from running indefinitely +TASK_TIMEOUT = timedelta(seconds=5) +# Prevent the workflow from running indefinitely +EXECUTION_TIMEOUT = timedelta(seconds=10) class TestException(Exception): @@ -152,6 +154,8 @@ class TestVimWorkflowsBase(asynctest.TestCase): ] ) class TestVimWorkflow(TestVimWorkflowsBase): + workflow_name: str + async def test_nominal_case_updates_vim_state_and_vim_op_state(self): activities = [ mock_test_vim_connectivity, -- 2.25.1