summaryrefslogtreecommitdiff
path: root/jstests/sharding/validate_collection.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/validate_collection.js')
-rw-r--r--jstests/sharding/validate_collection.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/sharding/validate_collection.js b/jstests/sharding/validate_collection.js
index 0584c2a8c63..647d5c95378 100644
--- a/jstests/sharding/validate_collection.js
+++ b/jstests/sharding/validate_collection.js
@@ -19,12 +19,12 @@ var s = st.s;
var testDb = st.getDB('test');
function setup() {
- assert.writeOK(testDb.test.insert({_id: 0}));
- assert.writeOK(testDb.test.insert({_id: 1}));
+ assert.commandWorked(testDb.test.insert({_id: 0}));
+ assert.commandWorked(testDb.test.insert({_id: 1}));
- assert.writeOK(testDb.dummy.insert({_id: 0}));
- assert.writeOK(testDb.dummy.insert({_id: 1}));
- assert.writeOK(testDb.dummy.insert({_id: 2}));
+ assert.commandWorked(testDb.dummy.insert({_id: 0}));
+ assert.commandWorked(testDb.dummy.insert({_id: 1}));
+ assert.commandWorked(testDb.dummy.insert({_id: 2}));
}
function validate(valid) {