summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync_drop_collection.js
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@mongodb.com>2019-08-14 13:52:59 +0000
committerevergreen <evergreen@mongodb.com>2019-08-14 13:52:59 +0000
commit39c3a5d77b976e131d37476f2e7255d6058f5093 (patch)
tree01cc28719f215b17196ec913f475cd8efda9b37d /jstests/replsets/initial_sync_drop_collection.js
parent69d0dd1dc4fb1f78d21c47aa5dd82aa9077b69eb (diff)
downloadmongo-39c3a5d77b976e131d37476f2e7255d6058f5093.tar.gz
SERVER-42773 Replace uses of the assert.writeOK() Javascript assertion with assert.commandWorked()
Diffstat (limited to 'jstests/replsets/initial_sync_drop_collection.js')
-rw-r--r--jstests/replsets/initial_sync_drop_collection.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/initial_sync_drop_collection.js b/jstests/replsets/initial_sync_drop_collection.js
index 6488f55e01e..72fa5b5d273 100644
--- a/jstests/replsets/initial_sync_drop_collection.js
+++ b/jstests/replsets/initial_sync_drop_collection.js
@@ -35,7 +35,7 @@ var nss = primaryColl.getFullName();
// the collection on the secondary is empty.
function setupTest({failPoint, secondaryStartupParams}) {
jsTestLog("Writing data to collection.");
- assert.writeOK(primaryColl.insert([{_id: 1}, {_id: 2}]));
+ assert.commandWorked(primaryColl.insert([{_id: 1}, {_id: 2}]));
jsTestLog("Restarting secondary with failPoint " + failPoint + " set for " + nss);
secondaryStartupParams = secondaryStartupParams || {};
@@ -69,7 +69,7 @@ function finishTest({failPoint, secondaryStartupParams, expectedLog, waitForDrop
if (createNew) {
jsTestLog("Creating a new collection with the same name: " + primaryColl.getFullName());
- assert.writeOK(primaryColl.insert({_id: "not the same collection"}));
+ assert.commandWorked(primaryColl.insert({_id: "not the same collection"}));
}
jsTestLog("Allowing secondary to continue.");