diff options
author | Tyler Kaye <tyler.kaye@mongodb.com> | 2018-11-14 18:40:05 -0500 |
---|---|---|
committer | Ben Caimano <ben.caimano@10gen.com> | 2019-06-21 13:42:11 -0400 |
commit | 5f909d80569ee0447f54e0abace95c5ad836e899 (patch) | |
tree | 294cf52824fc4775d328533a58b47b7e73692f0b | |
parent | e1d15dafee2ce7bbb239c7c665ed330a20c3af1e (diff) | |
download | mongo-5f909d80569ee0447f54e0abace95c5ad836e899.tar.gz |
SERVER-38303: Temporarily handle ipv6 failures due to s390x machine without ipv6 enabled
-rw-r--r-- | jstests/noPassthroughWithMongod/host_connection_string_validation.js | 4 | ||||
-rw-r--r-- | jstests/noPassthroughWithMongod/ipv6_connection_string_validation.js | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/jstests/noPassthroughWithMongod/host_connection_string_validation.js b/jstests/noPassthroughWithMongod/host_connection_string_validation.js index f7bac51db88..9084e244766 100644 --- a/jstests/noPassthroughWithMongod/host_connection_string_validation.js +++ b/jstests/noPassthroughWithMongod/host_connection_string_validation.js @@ -10,6 +10,10 @@ // tested manually), so 127.0.0.1 is also present so the test mongo shell can connect // with that address. var mongod = MongoRunner.runMongod({ipv6: "", bind_ip: "::1,127.0.0.1"}); + if (mongod == null) { + jsTest.log("Unable to run test because ipv6 is not on machine, see BF-10990"); + return; + } var args = [ "mongo", "--nodb", diff --git a/jstests/noPassthroughWithMongod/ipv6_connection_string_validation.js b/jstests/noPassthroughWithMongod/ipv6_connection_string_validation.js index 6d80b2aec70..75825b2a656 100644 --- a/jstests/noPassthroughWithMongod/ipv6_connection_string_validation.js +++ b/jstests/noPassthroughWithMongod/ipv6_connection_string_validation.js @@ -13,6 +13,10 @@ // tested manually), so 127.0.0.1 is also present so the test mongo shell can connect // with that address. var mongod = MongoRunner.runMongod({ipv6: "", bind_ip: "::1,127.0.0.1"}); + if (mongod == null) { + jsTest.log("Unable to run test because ipv6 is not on machine, see BF-10990"); + return; + } var args = [ "mongo", "--nodb", |