diff options
Diffstat (limited to 'jstests/core/compare_timestamps.js')
-rw-r--r-- | jstests/core/compare_timestamps.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/compare_timestamps.js b/jstests/core/compare_timestamps.js index b88bb003483..54db4b0fd36 100644 --- a/jstests/core/compare_timestamps.js +++ b/jstests/core/compare_timestamps.js @@ -3,7 +3,7 @@ 'use strict'; var t = db.compare_timestamps; t.drop(); -assert.writeOK(t.insert({a: new Timestamp(0xffffffff, 3), b: "non-zero"})); -assert.writeOK(t.insert({a: new Timestamp(0, 0), b: "zero"})); +assert.commandWorked(t.insert({a: new Timestamp(0xffffffff, 3), b: "non-zero"})); +assert.commandWorked(t.insert({a: new Timestamp(0, 0), b: "zero"})); assert.eq(t.find().sort({a: 1}).limit(1).next().b, "zero", "timestamp must compare unsigned"); }()); |