Skip to content

Commit

Permalink
Increase timeout to improve test reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
RealOrangeOne committed Sep 10, 2024
1 parent f008e90 commit a535c28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tests/test_database_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = []
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a535c28

Please sign in to comment.