diff options
Diffstat (limited to 'jstests/core/constructors.js')
-rw-r--r-- | jstests/core/constructors.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/constructors.js b/jstests/core/constructors.js index 0e28150e701..7657f3b4b1e 100644 --- a/jstests/core/constructors.js +++ b/jstests/core/constructors.js @@ -77,7 +77,7 @@ function whereConstructorTest(constructorList) { constructorList = addConstructorsWithNew(constructorList); t = db.where_constructors; t.drop(); - assert.writeOK(t.insert({x: 1})); + assert.commandWorked(t.insert({x: 1})); constructorList.valid.forEach(function(constructor) { try { |