0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00
mongodb/jstests/noPassthrough/bind_all_ipv6.js
2019-07-27 11:02:23 -04:00

11 lines
343 B
JavaScript

// Startup with --bind_ip_all and --ipv6 should not fail with address already in use.
(function() {
'use strict';
const mongo = MongoRunner.runMongod({ipv6: "", bind_ip_all: ""});
assert(mongo !== null, "Database is not running");
assert.commandWorked(mongo.getDB("test").isMaster(), "isMaster failed");
MongoRunner.stopMongod(mongo);
}());