Skip to content

Commit a535c28

Browse files
committed
Increase timeout to improve test reliability
1 parent f008e90 commit a535c28

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
@@ -1177,7 +1177,7 @@ def test_negative_age(self) -> None:
11771177
}
11781178
)
11791179
class DatabaseWorkerProcessTestCase(TransactionTestCase):
1180-
WORKER_STARTUP_TIME = 0.5
1180+
WORKER_STARTUP_TIME = 1
11811181

11821182
def setUp(self) -> None:
11831183
self.processes: List[subprocess.Popen] = []
@@ -1188,7 +1188,7 @@ def tearDown(self) -> None:
11881188
for process in self.processes:
11891189
if process.poll() is None:
11901190
process.kill()
1191-
time.sleep(0.01)
1191+
time.sleep(0.1)
11921192

11931193
def start_worker(
11941194
self, args: Optional[List[str]] = None, debug: bool = False
@@ -1366,7 +1366,7 @@ def test_multiple_workers(self) -> None:
13661366

13671367
for process in self.processes:
13681368
process.terminate()
1369-
process.wait(timeout=3)
1369+
process.wait(timeout=5)
13701370
self.assertIsNotNone(process.returncode)
13711371

13721372
for result in results:

0 commit comments

Comments
 (0)