summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/bind_localhost.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/bind_localhost.js')
-rw-r--r--jstests/noPassthrough/bind_localhost.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/jstests/noPassthrough/bind_localhost.js b/jstests/noPassthrough/bind_localhost.js
index 959c4b70541..242b559831d 100644
--- a/jstests/noPassthrough/bind_localhost.js
+++ b/jstests/noPassthrough/bind_localhost.js
@@ -1,15 +1,15 @@
// Log bound addresses at startup.
(function() {
- 'use strict';
+'use strict';
- const mongo = MongoRunner.runMongod({ipv6: '', bind_ip: 'localhost', useLogFiles: true});
- assert.neq(mongo, null, "Database is not running");
- const log = cat(mongo.fullOptions.logFile);
- print(log);
- assert(log.includes('Listening on 127.0.0.1'), "Not listening on AF_INET");
- if (!_isWindows()) {
- assert(log.match(/Listening on .*\.sock/), "Not listening on AF_UNIX");
- }
- MongoRunner.stopMongod(mongo);
+const mongo = MongoRunner.runMongod({ipv6: '', bind_ip: 'localhost', useLogFiles: true});
+assert.neq(mongo, null, "Database is not running");
+const log = cat(mongo.fullOptions.logFile);
+print(log);
+assert(log.includes('Listening on 127.0.0.1'), "Not listening on AF_INET");
+if (!_isWindows()) {
+ assert(log.match(/Listening on .*\.sock/), "Not listening on AF_UNIX");
+}
+MongoRunner.stopMongod(mongo);
}());