diff options
author | Gregory Noma <gregory.noma@gmail.com> | 2020-03-16 14:31:09 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-16 18:58:38 +0000 |
commit | 800da7962b1fed69986b099b694d12e16658be99 (patch) | |
tree | 1ac902a1b1f187305b0715c6e842970fc70ee5f7 /jstests/disk | |
parent | d187a3297df58c624d1e53f10959b3920ea218c4 (diff) | |
download | mongo-800da7962b1fed69986b099b694d12e16658be99.tar.gz |
SERVER-46468 Prevent validate from generating overlong responses
Diffstat (limited to 'jstests/disk')
-rw-r--r-- | jstests/disk/libs/wt_file_helper.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jstests/disk/libs/wt_file_helper.js b/jstests/disk/libs/wt_file_helper.js index fda0f7b1dc1..832eaff5a68 100644 --- a/jstests/disk/libs/wt_file_helper.js +++ b/jstests/disk/libs/wt_file_helper.js @@ -199,3 +199,11 @@ let assertErrorOnRequestWhenFilesAreCorruptOrMissing = function( assert.gte(rawMongoProgramOutput().search(errmsgRegExp), 0); MongoRunner.stopMongod(mongod, 9, {allowedExitCode: MongoRunner.EXIT_ABRUPT}); }; + +/** + * Runs the WiredTiger tool with the provided arguments. + */ +let runWiredTigerTool = function(...args) { + const cmd = ['wt'].concat(args); + assert.eq(run.apply(undefined, cmd), 0, "error executing: " + cmd.join(' ')); +}; |