diff options
Diffstat (limited to 'jstests/core/uniqueness.js')
-rw-r--r-- | jstests/core/uniqueness.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/uniqueness.js b/jstests/core/uniqueness.js index 54a5a71c276..d138f59d0ae 100644 --- a/jstests/core/uniqueness.js +++ b/jstests/core/uniqueness.js @@ -20,7 +20,7 @@ t.drop(); // test uniqueness of _id res = t.save({_id: 3}); -assert.writeOK(res); +assert.commandWorked(res); // this should yield an error res = t.insert({_id: 3}); @@ -28,7 +28,7 @@ assert.writeError(res); assert.eq(1, t.count()); res = t.insert({_id: 4, x: 99}); -assert.writeOK(res); +assert.commandWorked(res); // this should yield an error res = t.update({_id: 4}, {_id: 3, x: 99}); |