diff options
author | Lingzhi Deng <lingzhi.deng@mongodb.com> | 2020-12-15 18:45:27 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-12-16 00:12:06 +0000 |
commit | 356787c1f465d35fa17aa2e7e6fd7e2ba09ce998 (patch) | |
tree | 41de8badc582919522916353ae882e282240cef2 /jstests/core/list_indexes_invalidation.js | |
parent | e9ba0db9a0b5f4e7116670118cf10184a14f2e40 (diff) | |
download | mongo-356787c1f465d35fa17aa2e7e6fd7e2ba09ce998.tar.gz |
Revert "SERVER-52545 Define listIndexes with IDL"
This reverts commit 0c132588e9907c7b123f986a61c3a43cd087381f.
Diffstat (limited to 'jstests/core/list_indexes_invalidation.js')
-rw-r--r-- | jstests/core/list_indexes_invalidation.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/jstests/core/list_indexes_invalidation.js b/jstests/core/list_indexes_invalidation.js index 74afd3327bd..85ab71eec42 100644 --- a/jstests/core/list_indexes_invalidation.js +++ b/jstests/core/list_indexes_invalidation.js @@ -1,11 +1,6 @@ // Cannot implicitly shard accessed collections because renameCollection command not supported // on sharded collections. -// @tags: [ -// assumes_unsharded_collection, -// requires_non_retryable_commands, -// requires_fastcount, -// requires_getmore -// ] +// @tags: [assumes_unsharded_collection, requires_non_retryable_commands, requires_fastcount] (function() { 'use strict'; @@ -21,7 +16,7 @@ function testIndexInvalidation(isRename) { // Get the first two indexes. let cmd = {listIndexes: collName}; - Object.extend(cmd, {cursor: {batchSize: 2}}); + Object.extend(cmd, {batchSize: 2}); let res = db.runCommand(cmd); assert.commandWorked(res, 'could not run ' + tojson(cmd)); printjson(res); @@ -30,7 +25,6 @@ function testIndexInvalidation(isRename) { let cursor = new DBCommandCursor(db, res); let errMsg = 'expected more data from command ' + tojson(cmd) + ', with result ' + tojson(res); assert(cursor.hasNext(), errMsg); - assert(res.cursor.id !== NumberLong("0"), errMsg); if (isRename) { assert.commandWorked(coll.renameCollection(collNameRenamed)); } else { |