summaryrefslogtreecommitdiff
path: root/jstests/disk/index_options.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/disk/index_options.js')
-rw-r--r--jstests/disk/index_options.js36
1 files changed, 13 insertions, 23 deletions
diff --git a/jstests/disk/index_options.js b/jstests/disk/index_options.js
index d8a3b267333..68710de75a1 100644
--- a/jstests/disk/index_options.js
+++ b/jstests/disk/index_options.js
@@ -4,44 +4,34 @@ load('jstests/libs/command_line/test_parsed_options.js');
jsTest.log("Testing \"noIndexBuildRetry\" command line option");
var expectedResult = {
- "parsed" : {
- "storage" : {
- "indexBuildRetry" : false
- }
- }
+ "parsed": {"storage": {"indexBuildRetry": false}}
};
-testGetCmdLineOptsMongod({ noIndexBuildRetry : "" }, expectedResult);
+testGetCmdLineOptsMongod({noIndexBuildRetry: ""}, expectedResult);
jsTest.log("Testing \"storage.indexBuildRetry\" config file option");
expectedResult = {
- "parsed" : {
- "config" : "jstests/libs/config_files/enable_indexbuildretry.json",
- "storage" : {
- "indexBuildRetry" : true
- }
+ "parsed": {
+ "config": "jstests/libs/config_files/enable_indexbuildretry.json",
+ "storage": {"indexBuildRetry": true}
}
};
-testGetCmdLineOptsMongod({ config : "jstests/libs/config_files/enable_indexbuildretry.json" },
- expectedResult);
+testGetCmdLineOptsMongod({config: "jstests/libs/config_files/enable_indexbuildretry.json"},
+ expectedResult);
jsTest.log("Testing with no explicit index option setting");
expectedResult = {
- "parsed" : {
- "storage" : { }
- }
+ "parsed": {"storage": {}}
};
testGetCmdLineOptsMongod({}, expectedResult);
jsTest.log("Testing explicitly disabled \"noIndexBuildRetry\" config file option");
expectedResult = {
- "parsed" : {
- "config" : "jstests/libs/config_files/disable_noindexbuildretry.ini",
- "storage" : {
- "indexBuildRetry" : true
- }
+ "parsed": {
+ "config": "jstests/libs/config_files/disable_noindexbuildretry.ini",
+ "storage": {"indexBuildRetry": true}
}
};
-testGetCmdLineOptsMongod({ config : "jstests/libs/config_files/disable_noindexbuildretry.ini" },
- expectedResult);
+testGetCmdLineOptsMongod({config: "jstests/libs/config_files/disable_noindexbuildretry.ini"},
+ expectedResult);
print(baseName + " succeeded.");