diff --git a/tests/tests/test_database_backend.py b/tests/tests/test_database_backend.py index 5a2f642..c2fcd06 100644 --- a/tests/tests/test_database_backend.py +++ b/tests/tests/test_database_backend.py @@ -1177,7 +1177,7 @@ def test_negative_age(self) -> None: } ) class DatabaseWorkerProcessTestCase(TransactionTestCase): - WORKER_STARTUP_TIME = 0.5 + WORKER_STARTUP_TIME = 1 def setUp(self) -> None: self.processes: List[subprocess.Popen] = [] @@ -1188,7 +1188,7 @@ def tearDown(self) -> None: for process in self.processes: if process.poll() is None: process.kill() - time.sleep(0.01) + time.sleep(0.1) def start_worker( self, args: Optional[List[str]] = None, debug: bool = False @@ -1366,7 +1366,7 @@ def test_multiple_workers(self) -> None: for process in self.processes: process.terminate() - process.wait(timeout=3) + process.wait(timeout=5) self.assertIsNotNone(process.returncode) for result in results: