Skip to content

Commit fcf7c21

Browse files
committed
Increase timeout to improve test reliability
1 parent 78cf6ac commit fcf7c21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/tests/test_database_backend.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ def test_negative_age(self) -> None:
11581158
}
11591159
)
11601160
class DatabaseWorkerProcessTestCase(TransactionTestCase):
1161-
WORKER_STARTUP_TIME = 0.5
1161+
WORKER_STARTUP_TIME = 1
11621162

11631163
def setUp(self) -> None:
11641164
self.processes: List[subprocess.Popen] = []
@@ -1169,7 +1169,7 @@ def tearDown(self) -> None:
11691169
for process in self.processes:
11701170
if process.poll() is None:
11711171
process.kill()
1172-
time.sleep(0.01)
1172+
time.sleep(0.1)
11731173

11741174
def start_worker(
11751175
self, args: Optional[List[str]] = None, debug: bool = False
@@ -1336,7 +1336,7 @@ def test_multiple_workers(self) -> None:
13361336

13371337
for process in self.processes:
13381338
process.terminate()
1339-
process.wait(timeout=3)
1339+
process.wait(timeout=5)
13401340
self.assertIsNotNone(process.returncode)
13411341

13421342
for result in results:

0 commit comments

Comments
 (0)