From: Daniel Arndt Date: Tue, 4 Jul 2023 15:00:23 +0000 (-0300) Subject: Increase test timeouts X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F13625%2F3;p=osm%2FLCM.git Increase test timeouts Seems these were set too low, and causing tests to fail. Change-Id: Ib02f47ad91d5e28abe2bb171a0d5356510afdadd Signed-off-by: Daniel Arndt --- diff --git a/osm_lcm/tests/test_vim_workflows.py b/osm_lcm/tests/test_vim_workflows.py index 7ec5d181..515d3ad8 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,