diff options
Diffstat (limited to 'jstests/replsets/initial_sync_during_stepdown.js')
-rw-r--r-- | jstests/replsets/initial_sync_during_stepdown.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/initial_sync_during_stepdown.js b/jstests/replsets/initial_sync_during_stepdown.js index 9d68ac69c49..fe5d1a79587 100644 --- a/jstests/replsets/initial_sync_during_stepdown.js +++ b/jstests/replsets/initial_sync_during_stepdown.js @@ -34,7 +34,7 @@ function setupTest({ secondaryStartupParams: secondaryStartupParams = {} }) { jsTestLog("Writing data to collection."); - assert.writeOK(primaryColl.insert([{_id: 1}, {_id: 2}])); + assert.commandWorked(primaryColl.insert([{_id: 1}, {_id: 2}])); jsTestLog("Stopping secondary."); rst.stop(secondary); @@ -145,7 +145,7 @@ checkLog.contains(secondary, "initialSyncHangAfterDataCloning fail point enabled // Insert more data so that these are replicated to secondary node via oplog fetcher. jsTestLog("Inserting more data on primary."); -assert.writeOK(primaryColl.insert([{_id: 3}, {_id: 4}])); +assert.commandWorked(primaryColl.insert([{_id: 3}, {_id: 4}])); // Insert is successful. So, enable fail point "waitWithPinnedCursorDuringGetMoreBatch" // such that it doesn't drop locks when getmore cmd waits inside the fail point block. |