Skip to content

Commit 559d6f4

Browse files
committed
Increasing the GraphQL timeout in tests
1 parent 71af9b3 commit 559d6f4

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎lib/core/settings.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty import six
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.10.10.7"
23+
VERSION = "1.10.10.8"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

‎lib/core/testing.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,10 @@ def _thread():
268268

269269
os.environ["SQLMAP_UNSAFE_EVAL"] = '1'
270270

271-
# bounded well above the slowest known entry (GraphQL, ~96s) - a hung entry fails fast and
272-
# visibly instead of silently burning the whole CI job's timeout (see #6129 CI investigation)
273-
output = shellExec(cmd, timeout=180)
271+
# GraphQL blind-dumps every table, including the wide LDAP directory fixture. It takes
272+
# ~124s locally on PyPy and can exceed 180s on CI; give that entry more room without
273+
# weakening its checks or changing the watchdog for the remaining entries (see #6129).
274+
output = shellExec(cmd, timeout=300 if "--graphql" in options else 180)
274275

275276
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:
276277
dataToStdout("---\n\n$ %s\n" % cmd)

0 commit comments

Comments
 (0)