diff options
author | Mike Grundy <michael.grundy@10gen.com> | 2016-02-04 12:29:01 -0500 |
---|---|---|
committer | Mike Grundy <michael.grundy@10gen.com> | 2016-02-09 13:41:02 -0500 |
commit | 3bed8596d18275d1561e4f44f1f0bd72c1e038f1 (patch) | |
tree | 788eaed3c7a692a424f080d16a8841dc8afa3c13 /jstests/core/collmod.js | |
parent | 985e2a0be95709ac064c57f0a9bb385a55937285 (diff) | |
download | mongo-3bed8596d18275d1561e4f44f1f0bd72c1e038f1.tar.gz |
SERVER-22341 fix jslint errors in jstests/core with eslint --fix
Conflicts:
jstests/core/count_hint.js
Diffstat (limited to 'jstests/core/collmod.js')
-rw-r--r-- | jstests/core/collmod.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/core/collmod.js b/jstests/core/collmod.js index 31796b639da..f901c8a3e6f 100644 --- a/jstests/core/collmod.js +++ b/jstests/core/collmod.js @@ -32,7 +32,7 @@ function findCollectionInfo() { assert.commandFailed(t.runCommand('collmod', {NotARealOption:1})); // add a TTL index -t.ensureIndex( {a : 1}, { "expireAfterSeconds": 50 } ) +t.ensureIndex( {a : 1}, { "expireAfterSeconds": 50 } ); assert( findTTL( { a : 1 }, 50 ), "TTL index not added" ); // try to modify it with a bad key pattern @@ -61,7 +61,7 @@ assert( findTTL( {a:1}, 100 ), "TTL index not modified" ); // try to modify a faulty TTL index with a non-numeric expireAfterSeconds field t.dropIndex( {a : 1 } ); -t.ensureIndex( {a : 1} , { "expireAfterSeconds": "50" } ) +t.ensureIndex( {a : 1} , { "expireAfterSeconds": "50" } ); var res = db.runCommand( { "collMod" : coll, "index" : { "keyPattern" : {a : 1} , "expireAfterSeconds" : 100 } } ); debug( res ); @@ -69,7 +69,7 @@ assert.eq( 0, res.ok, "shouldn't be able to modify faulty index spec" ); // try with new index, this time set both expireAfterSeconds and the usePowerOf2Sizes flag t.dropIndex( {a : 1 } ); -t.ensureIndex( {a : 1} , { "expireAfterSeconds": 50 } ) +t.ensureIndex( {a : 1} , { "expireAfterSeconds": 50 } ); var res = db.runCommand( { "collMod" : coll , "usePowerOf2Sizes" : true, "index" : { "keyPattern" : {a : 1} , "expireAfterSeconds" : 100 } } ); @@ -79,7 +79,7 @@ assert( findTTL( {a:1}, 100), "TTL index should be 100 now" ); // Clear usePowerOf2Sizes and enable noPadding. Make sure collection options.flags is updated. var res = db.runCommand( { "collMod" : coll , "usePowerOf2Sizes" : false, - "noPadding" : true} ) + "noPadding" : true} ); debug( res ); assert.commandWorked(res); var info = findCollectionInfo(); @@ -87,7 +87,7 @@ assert.eq(info.options.flags, 2, tojson(info)); // 2 is CollectionOptions::Flag_ // Clear noPadding and check results object and options.flags. var res = db.runCommand( { "collMod" : coll , - "noPadding" : false} ) + "noPadding" : false} ); debug( res ); assert.commandWorked(res); if (!isMongos) { |