Skip to content

Commit 8aa68af

Browse files
committed
SERVER-24881 Fix JS test for storage engines that don't support journaling.
1 parent aac4bf9 commit 8aa68af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jstests/replsets/stepup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ load("jstests/replsets/rslib.js");
4444
assert.commandWorked(
4545
secondary.getDB('admin').runCommand({configureFailPoint: 'rsSyncApplyStop', mode: 'off'}));
4646

47-
// Wait for the secondary to catch up.
48-
assert.writeOK(primary.getDB("test").bar.insert({x: 3}, {writeConcern: {w: 2, j: true}}));
47+
// Wait for the secondary to catch up by replicating a doc to both nodes.
48+
assert.writeOK(primary.getDB("test").bar.insert({x: 3}, {writeConcern: {w: "majority"}}));
4949
// Step up the secondary and succeed.
5050
res = secondary.adminCommand({replSetStepUp: 1});
5151
assert.commandWorked(res);

0 commit comments

Comments
 (0)