Increasing the GraphQL timeout in tests

This commit is contained in:
Miroslav Štampar
2026-10-18 22:37:59 +02:00
parent 71af9b3d8a
commit 559d6f4543
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.10.7"
VERSION = "1.10.10.8"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
+4 -3
View File
@@ -268,9 +268,10 @@ def vulnTest(tests=None, label="vuln"):
os.environ["SQLMAP_UNSAFE_EVAL"] = '1'
# bounded well above the slowest known entry (GraphQL, ~96s) - a hung entry fails fast and
# visibly instead of silently burning the whole CI job's timeout (see #6129 CI investigation)
output = shellExec(cmd, timeout=180)
# GraphQL blind-dumps every table, including the wide LDAP directory fixture. It takes
# ~124s locally on PyPy and can exceed 180s on CI; give that entry more room without
# weakening its checks or changing the watchdog for the remaining entries (see #6129).
output = shellExec(cmd, timeout=300 if "--graphql" in options else 180)
if not all((check in output if not check.startswith('~') else check[1:] not in output) for check in checks) or "unhandled exception" in output:
dataToStdout("---\n\n$ %s\n" % cmd)