diff options
Diffstat (limited to 'jstests/noPassthroughWithMongod/testing_only_commands.js')
-rw-r--r-- | jstests/noPassthroughWithMongod/testing_only_commands.js | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/jstests/noPassthroughWithMongod/testing_only_commands.js b/jstests/noPassthroughWithMongod/testing_only_commands.js index 51d104bee48..3ac3db8ed67 100644 --- a/jstests/noPassthroughWithMongod/testing_only_commands.js +++ b/jstests/noPassthroughWithMongod/testing_only_commands.js @@ -3,14 +3,16 @@ * via the --enableTestCommands flag fail when that flag isn't provided. */ -var testOnlyCommands = ['configureFailPoint', - '_hashBSONElement', - 'replSetTest', - 'journalLatencyTest', - 'godinsert', - 'sleep', - 'captrunc', - 'emptycapped']; +var testOnlyCommands = [ + 'configureFailPoint', + '_hashBSONElement', + 'replSetTest', + 'journalLatencyTest', + 'godinsert', + 'sleep', + 'captrunc', + 'emptycapped' +]; var assertCmdNotFound = function(db, cmdName) { var res = db.runCommand(cmdName); @@ -21,9 +23,10 @@ var assertCmdNotFound = function(db, cmdName) { var assertCmdFound = function(db, cmdName) { var res = db.runCommand(cmdName); if (!res.ok) { - assert.neq(59, res.code, + assert.neq(59, + res.code, 'test command ' + cmdName + ' should either have succeeded or ' + - 'failed with an error code other than CommandNotFound(59)'); + 'failed with an error code other than CommandNotFound(59)'); } }; |