diff options
author | Mickey. J Winters <mickey.winters@mongodb.com> | 2021-08-11 15:22:45 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-11 17:21:10 +0000 |
commit | 70e9a9e4551034a0ee3e42b7fa66121cb494bbc8 (patch) | |
tree | 60e70f7bf269025a2c3d0e8a4fe595f7970ad5ba /jstests/noPassthrough/query_knobs_validation.js | |
parent | ffdc33b2cfc904a87acca6aae5a8226ab4a2b81f (diff) | |
download | mongo-70e9a9e4551034a0ee3e42b7fa66121cb494bbc8.tar.gz |
SERVER-58203 factor out logging statments into helper functions
Diffstat (limited to 'jstests/noPassthrough/query_knobs_validation.js')
-rw-r--r-- | jstests/noPassthrough/query_knobs_validation.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/jstests/noPassthrough/query_knobs_validation.js b/jstests/noPassthrough/query_knobs_validation.js index f43e3fd6b5c..4a1f25c55a7 100644 --- a/jstests/noPassthrough/query_knobs_validation.js +++ b/jstests/noPassthrough/query_knobs_validation.js @@ -38,7 +38,6 @@ const expectedParamDefaults = { internalLookupStageIntermediateDocumentMaxSizeBytes: 100 * 1024 * 1024, internalDocumentSourceGroupMaxMemoryBytes: 100 * 1024 * 1024, internalDocumentSourceSetWindowFieldsMaxMemoryBytes: 100 * 1024 * 1024, - internalPipelineLengthLimit: 1000, internalQueryMaxJsEmitBytes: 100 * 1024 * 1024, internalQueryMaxPushBytes: 100 * 1024 * 1024, internalQueryMaxAddToSetBytes: 100 * 1024 * 1024, @@ -74,6 +73,13 @@ function assertSetParameterFails(paramName, value) { ErrorCodes.BadValue); } +// InternalPipelineLengthLimit is different is lowered in a debug build so its expected value +// depends on that +const getParamRes = + assert.commandWorked(testDB.adminCommand({getParameter: 1, internalPipelineLengthLimit: 1})); +assert.eq(getParamRes["internalPipelineLengthLimit"], + testDB.adminCommand("buildInfo").debug ? 200 : 1000); + // Verify that the default values are set as expected when the server starts up. assertDefaultParameterValues(); |