From 2eab6f522163e9f910401e3997c69298e4b66d70 Mon Sep 17 00:00:00 2001 From: Huayu Ouyang Date: Mon, 10 Jan 2022 20:58:38 +0000 Subject: SERVER-62423 Fix replsetinitiate_works_with_keyfile_profile_verbose_options.js to work on ephemeralForTest (cherry picked from commit eb1208bc154b034fca6f9add296d00d32e80a64e) --- ...replsetinitiate_works_with_keyfile_profile_verbose_options.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/jstests/replsets/replsetinitiate_works_with_keyfile_profile_verbose_options.js b/jstests/replsets/replsetinitiate_works_with_keyfile_profile_verbose_options.js index daf734a9d30..ca6fd8e6d59 100644 --- a/jstests/replsets/replsetinitiate_works_with_keyfile_profile_verbose_options.js +++ b/jstests/replsets/replsetinitiate_works_with_keyfile_profile_verbose_options.js @@ -7,8 +7,13 @@ let options = {verbose: 1, profile: 1, keyFile: 'jstests/libs/key1', replSet: "r const conn = MongoRunner.runMongod(options); -assert.commandWorked(conn.getDB('admin').runCommand( - {replSetInitiate: {"_id": "rs0", "members": [{"_id": 0, "host": "127.0.0.1:27017"}]}})); +assert.commandWorked(conn.getDB('admin').runCommand({ + replSetInitiate: { + "_id": "rs0", + "members": [{"_id": 0, "host": "127.0.0.1:27017"}], + writeConcernMajorityJournalDefault: false + } +})); assert.soon(function() { const res = assert.commandWorked(conn.adminCommand({hello: 1})); -- cgit v1.2.1