diff options
author | Benety Goh <benety@mongodb.com> | 2017-11-02 15:47:23 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-11-06 16:41:30 -0500 |
commit | c97dd9bc1f8652efcc41706b9b40a0829aed587a (patch) | |
tree | f7abe570203ebfb172d0957691264a0e677fa126 | |
parent | f98b9247175d4212a821e827801bc4915cd6269e (diff) | |
download | mongo-c97dd9bc1f8652efcc41706b9b40a0829aed587a.tar.gz |
SERVER-31300 Re-enable applyOps rollback test opWithoutUUID
-rw-r--r-- | jstests/replsets/rollback_all_op_types.js | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/jstests/replsets/rollback_all_op_types.js b/jstests/replsets/rollback_all_op_types.js index 34670190577..cb1020dc4ad 100644 --- a/jstests/replsets/rollback_all_op_types.js +++ b/jstests/replsets/rollback_all_op_types.js @@ -245,22 +245,21 @@ assert.commandWorked(db.adminCommand({applyOps: opsToApply})); } }, - // TODO: Re-enable once SERVER-31300 is completed. - // { - // description: "opWithoutUUID", - // init: (db, collName) => { - // assert.commandWorked(db.createCollection(collName)); - // }, - // // In 3.6 only document CRUD operations are grouped into a single applyOps oplog - // // entry. - // op: (db, collName) => { - // let coll = db.getCollection(collName); - // let opsToApply = [ - // {op: "i", ns: coll.getFullName(), o: {_id: 0}}, - // ]; - // assert.commandWorked(db.adminCommand({applyOps: opsToApply})); - // } - // } + { + description: "opWithoutUUID", + init: (db, collName) => { + assert.commandWorked(db.createCollection(collName)); + }, + // In 3.6 only document CRUD operations are grouped into a single applyOps oplog + // entry. + op: (db, collName) => { + let coll = db.getCollection(collName); + let opsToApply = [ + {op: "i", ns: coll.getFullName(), o: {_id: 0}}, + ]; + assert.commandWorked(db.adminCommand({applyOps: opsToApply})); + } + } ] }; |