summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync_rename_collection.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/initial_sync_rename_collection.js')
-rw-r--r--jstests/replsets/initial_sync_rename_collection.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/initial_sync_rename_collection.js b/jstests/replsets/initial_sync_rename_collection.js
index 9c63d7c55b1..957dae9db8a 100644
--- a/jstests/replsets/initial_sync_rename_collection.js
+++ b/jstests/replsets/initial_sync_rename_collection.js
@@ -32,8 +32,8 @@ const collAcrossFinal_name = 'renamed_across';
// Create two collections on the same database. One will be renamed within the database
// and the other will be renamed to a different database.
-assert.writeOK(primary_db0[collRenameWithinDB_name].save({}));
-assert.writeOK(primary_db0[collRenameAcrossDBs_name].save({}));
+assert.commandWorked(primary_db0[collRenameWithinDB_name].save({}));
+assert.commandWorked(primary_db0[collRenameAcrossDBs_name].save({}));
jsTestLog('Waiting for replication');
rst.awaitReplication();