diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-10-12 18:17:31 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-10-17 09:25:40 -0400 |
commit | d77201bbde61bf9e19eca81d73bbcb8bd85c757c (patch) | |
tree | 74d3ab587646f620aadd8c6ad92730a17a32d907 /jstests/sharding/write_transactions_during_migration.js | |
parent | 5eb95437e55acb07680c72a8a14a2f485bce94d7 (diff) | |
download | mongo-d77201bbde61bf9e19eca81d73bbcb8bd85c757c.tar.gz |
SERVER-30532 Remove IDL-generated parser for the findAndModify result
Instead only use a generator, but not parser. Also adds
lastErrorObject.upserted to the findAndModify retry result.
Diffstat (limited to 'jstests/sharding/write_transactions_during_migration.js')
-rw-r--r-- | jstests/sharding/write_transactions_during_migration.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/jstests/sharding/write_transactions_during_migration.js b/jstests/sharding/write_transactions_during_migration.js index 7c52628e05e..c16ca9845f5 100644 --- a/jstests/sharding/write_transactions_during_migration.js +++ b/jstests/sharding/write_transactions_during_migration.js @@ -13,7 +13,6 @@ load('./jstests/libs/chunk_manipulation_util.js'); * 4. Retry writes and confirm that writes are not duplicated. */ (function() { - "use strict"; var staticMongod = MongoRunner.runMongod({}); // For startParallelOps. @@ -67,14 +66,7 @@ load('./jstests/libs/chunk_manipulation_util.js'); assert.eq(findAndModifyResult.ok, findAndModifyRetryResult.ok); assert.eq(findAndModifyResult.value, findAndModifyRetryResult.value); - - // TODO: SERVER-30532: after adding upserted, just compare the entire lastErrorObject - var expectedLE = findAndModifyResult.lastErrorObject; - var toCheckLE = findAndModifyRetryResult.lastErrorObject; - - assert.neq(null, toCheckLE); - assert.eq(findAndModifyResult.updatedExisting, findAndModifyRetryResult.updatedExisting); - assert.eq(findAndModifyResult.n, findAndModifyRetryResult.n); + assert.eq(findAndModifyResult.lastErrorObject, findAndModifyRetryResult.lastErrorObject); assert.eq(1, testDB.user.findOne({x: 30}).y); |