mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-19 14:31:20 +08:00
Increasing the GraphQL timeout in tests
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user