summaryrefslogtreecommitdiff
path: root/jstests/replsets/change_stream_speculative_majority_secondary_batch_application.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/change_stream_speculative_majority_secondary_batch_application.js')
-rw-r--r--jstests/replsets/change_stream_speculative_majority_secondary_batch_application.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/replsets/change_stream_speculative_majority_secondary_batch_application.js b/jstests/replsets/change_stream_speculative_majority_secondary_batch_application.js
index 29beca07a26..9fa0cf055c0 100644
--- a/jstests/replsets/change_stream_speculative_majority_secondary_batch_application.js
+++ b/jstests/replsets/change_stream_speculative_majority_secondary_batch_application.js
@@ -46,9 +46,9 @@ assert.commandWorked(secondaryDB.adminCommand(
stopServerReplication(secondary);
jsTestLog("Do some writes on the primary.");
-assert.writeOK(primaryColl.update({_id: 0}, {$set: {v: 1}}));
-assert.writeOK(primaryColl.update({_id: 0}, {$set: {v: 2}}));
-assert.writeOK(primaryColl.update({_id: 0}, {$set: {v: 3}}));
+assert.commandWorked(primaryColl.update({_id: 0}, {$set: {v: 1}}));
+assert.commandWorked(primaryColl.update({_id: 0}, {$set: {v: 2}}));
+assert.commandWorked(primaryColl.update({_id: 0}, {$set: {v: 3}}));
// Restart server replication on secondary and wait for the failpoint to be hit.
jsTestLog("Restarting server replication on secondary.");