summaryrefslogtreecommitdiff
path: root/jstests/ssl/x509_enforce_user_cluster_separation.js
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2021-06-10 22:01:42 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-23 17:51:07 +0000
commit09f99b41e373768c5c1645d15733d1148b891176 (patch)
treefd72d76c2a04a23f0705a2ccfa23ceb8dbeacbef /jstests/ssl/x509_enforce_user_cluster_separation.js
parent913ced248f4f4a5518dc4079bf17d14fe12f236b (diff)
downloadmongo-09f99b41e373768c5c1645d15733d1148b891176.tar.gz
SERVER-53062 Throw an exception in tests if server startup fails
Diffstat (limited to 'jstests/ssl/x509_enforce_user_cluster_separation.js')
-rw-r--r--jstests/ssl/x509_enforce_user_cluster_separation.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/ssl/x509_enforce_user_cluster_separation.js b/jstests/ssl/x509_enforce_user_cluster_separation.js
index a27ca670be3..1b7f4bd5731 100644
--- a/jstests/ssl/x509_enforce_user_cluster_separation.js
+++ b/jstests/ssl/x509_enforce_user_cluster_separation.js
@@ -99,8 +99,9 @@ function runMongodTest(desc, func) {
function runMongodFailTest(desc, options) {
print(desc);
- const mongo = MongoRunner.runMongod(Object.merge(mongodOptions, options));
- assert(!mongo, "MongoD started successfully with bad options");
+ assert.throws(() => MongoRunner.runMongod(Object.merge(mongodOptions, options)),
+ [],
+ "MongoD started successfully with bad options");
}
function runMongosTest(desc, func) {