Increase test timeouts 25/13625/3
authorDaniel Arndt <daniel.arndt@canonical.com>
Tue, 4 Jul 2023 15:00:23 +0000 (12:00 -0300)
committerbeierlm <mark.beierl@canonical.com>
Wed, 5 Jul 2023 13:19:10 +0000 (15:19 +0200)
Seems these were set too low, and causing tests to fail.

Change-Id: Ib02f47ad91d5e28abe2bb171a0d5356510afdadd
Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
osm_lcm/tests/test_vim_workflows.py

index 7ec5d18..515d3ad 100644 (file)
@@ -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,