summaryrefslogtreecommitdiff
path: root/jstests/disk
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/disk
parent913ced248f4f4a5518dc4079bf17d14fe12f236b (diff)
downloadmongo-09f99b41e373768c5c1645d15733d1148b891176.tar.gz
SERVER-53062 Throw an exception in tests if server startup fails
Diffstat (limited to 'jstests/disk')
-rw-r--r--jstests/disk/wt_table_checks.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/jstests/disk/wt_table_checks.js b/jstests/disk/wt_table_checks.js
index 9c2b4407323..854a7c6f39b 100644
--- a/jstests/disk/wt_table_checks.js
+++ b/jstests/disk/wt_table_checks.js
@@ -67,12 +67,11 @@ MongoRunner.stopMongod(conn);
*/
jsTest.log("Test 4.");
-conn = startMongodOnExistingPath(dbpath, {
- replSet: "mySet",
- setParameter:
- "failpoint.crashAfterUpdatingFirstTableLoggingSettings=" + tojson({"mode": "alwaysOn"})
-});
-assert(!conn);
+assert.throws(() => startMongodOnExistingPath(dbpath, {
+ replSet: "mySet",
+ setParameter: "failpoint.crashAfterUpdatingFirstTableLoggingSettings=" +
+ tojson({"mode": "alwaysOn"})
+ }));
// Cannot use checkLog here as the server is no longer running.
logContents = rawMongoProgramOutput();