summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/bind_all_ipv6.js
blob: cf76ae96c4490684601cc899fa0db62c5be22d7e (plain)
1
2
3
4
5
6
7
8
9
10
// 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").hello(), "hello failed");
MongoRunner.stopMongod(mongo);
}());