summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/wt_nojournal_skip_recovery.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/noPassthrough/wt_nojournal_skip_recovery.js
parent913ced248f4f4a5518dc4079bf17d14fe12f236b (diff)
downloadmongo-09f99b41e373768c5c1645d15733d1148b891176.tar.gz
SERVER-53062 Throw an exception in tests if server startup fails
Diffstat (limited to 'jstests/noPassthrough/wt_nojournal_skip_recovery.js')
-rw-r--r--jstests/noPassthrough/wt_nojournal_skip_recovery.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/jstests/noPassthrough/wt_nojournal_skip_recovery.js b/jstests/noPassthrough/wt_nojournal_skip_recovery.js
index b33e354860f..0228c859eb0 100644
--- a/jstests/noPassthrough/wt_nojournal_skip_recovery.js
+++ b/jstests/noPassthrough/wt_nojournal_skip_recovery.js
@@ -67,13 +67,14 @@ assert.neq(0, exitCode, 'expected shell to exit abnormally due to mongod being t
// Restart the mongod with journaling disabled, but configure it to error if the database needs
// recovery.
-conn = MongoRunner.runMongod({
+assert.throws(() => MongoRunner.runMongod({
dbpath: dbpath,
noCleanData: true,
nojournal: '',
wiredTigerEngineConfigString: 'log=(recover=error)',
-});
-assert.eq(null, conn, 'mongod should not have started up because it requires recovery');
+}),
+ [],
+ 'mongod should not have started up because it requires recovery');
// Remove the journal files.
assert(removeFile(dbpath + '/journal'), 'failed to remove the journal directory');