refactor: rename GIT_GATE_DAEMON_TIMEOUT_SECS to GIT_GATE_TIMEOUT_SECS
test / unit (pull_request) Successful in 33s
test / integration (pull_request) Successful in 17s
lint / lint (push) Successful in 1m48s
test / unit (push) Successful in 35s
test / integration (push) Successful in 17s
Update Quality Badges / update-badges (push) Successful in 1m20s

The constant now covers the daemon path, the HTTP backend access-hook,
and the git http-backend CGI subprocess, so 'daemon' in the name was
too narrow. Updated the comment to list all three current uses.
This commit was merged in pull request #271.
This commit is contained in:
2026-06-25 07:07:44 +00:00
committed by didericis
parent c0d3f16519
commit 0bace7615a
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ import urllib.request
from pathlib import Path
from unittest import mock
from bot_bottle.git_gate import GIT_GATE_DAEMON_TIMEOUT_SECS
from bot_bottle.git_gate import GIT_GATE_TIMEOUT_SECS
from bot_bottle.git_http_backend import GitHttpHandler, MAX_BODY_BYTES
@@ -201,7 +201,7 @@ class TestGitHttpBackend(unittest.TestCase):
for call in run.call_args_list:
self.assertEqual(
GIT_GATE_DAEMON_TIMEOUT_SECS,
GIT_GATE_TIMEOUT_SECS,
call.kwargs.get("timeout"),
f"subprocess.run call missing timeout: {call}",
)