summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/parse_zone_info.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/parse_zone_info.js')
-rw-r--r--jstests/noPassthrough/parse_zone_info.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/jstests/noPassthrough/parse_zone_info.js b/jstests/noPassthrough/parse_zone_info.js
index e8336f121da..c254d9d966d 100644
--- a/jstests/noPassthrough/parse_zone_info.js
+++ b/jstests/noPassthrough/parse_zone_info.js
@@ -1,20 +1,20 @@
// Tests the parsing of the timeZoneInfo parameter.
(function() {
- // Test that a bad file causes startup to fail.
- let conn = MongoRunner.runMongod({timeZoneInfo: "jstests/libs/config_files/bad_timezone_info"});
- assert.eq(conn, null, "expected launching mongod with bad timezone rules to fail");
- assert.neq(-1, rawMongoProgramOutput().indexOf("Fatal assertion 40475"));
+// Test that a bad file causes startup to fail.
+let conn = MongoRunner.runMongod({timeZoneInfo: "jstests/libs/config_files/bad_timezone_info"});
+assert.eq(conn, null, "expected launching mongod with bad timezone rules to fail");
+assert.neq(-1, rawMongoProgramOutput().indexOf("Fatal assertion 40475"));
- // Test that a non-existent directory causes startup to fail.
- conn = MongoRunner.runMongod({timeZoneInfo: "jstests/libs/config_files/missing_directory"});
- assert.eq(conn, null, "expected launching mongod with bad timezone rules to fail");
+// Test that a non-existent directory causes startup to fail.
+conn = MongoRunner.runMongod({timeZoneInfo: "jstests/libs/config_files/missing_directory"});
+assert.eq(conn, null, "expected launching mongod with bad timezone rules to fail");
- // Look for either old or new error message
- assert(rawMongoProgramOutput().indexOf("Failed to create service context") != -1 ||
- rawMongoProgramOutput().indexOf("Failed global initialization") != -1);
+// Look for either old or new error message
+assert(rawMongoProgramOutput().indexOf("Failed to create service context") != -1 ||
+ rawMongoProgramOutput().indexOf("Failed global initialization") != -1);
- // Test that startup can succeed with a good file.
- conn = MongoRunner.runMongod({timeZoneInfo: "jstests/libs/config_files/good_timezone_info"});
- assert.neq(conn, null, "expected launching mongod with good timezone rules to succeed");
- MongoRunner.stopMongod(conn);
+// Test that startup can succeed with a good file.
+conn = MongoRunner.runMongod({timeZoneInfo: "jstests/libs/config_files/good_timezone_info"});
+assert.neq(conn, null, "expected launching mongod with good timezone rules to succeed");
+MongoRunner.stopMongod(conn);
}());