diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2020-12-15 13:41:29 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-12-15 20:17:40 +0000 |
commit | 0c132588e9907c7b123f986a61c3a43cd087381f (patch) | |
tree | a83d514dff0689f97e7d9db7b503912767ec9cc9 /jstests/core/list_indexes_invalidation.js | |
parent | c425bdcf1862d642460211fcf450664233a9e6d0 (diff) | |
download | mongo-0c132588e9907c7b123f986a61c3a43cd087381f.tar.gz |
SERVER-52545 Define listIndexes with IDL
Diffstat (limited to 'jstests/core/list_indexes_invalidation.js')
-rw-r--r-- | jstests/core/list_indexes_invalidation.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/jstests/core/list_indexes_invalidation.js b/jstests/core/list_indexes_invalidation.js index 85ab71eec42..74afd3327bd 100644 --- a/jstests/core/list_indexes_invalidation.js +++ b/jstests/core/list_indexes_invalidation.js @@ -1,6 +1,11 @@ // Cannot implicitly shard accessed collections because renameCollection command not supported // on sharded collections. -// @tags: [assumes_unsharded_collection, requires_non_retryable_commands, requires_fastcount] +// @tags: [ +// assumes_unsharded_collection, +// requires_non_retryable_commands, +// requires_fastcount, +// requires_getmore +// ] (function() { 'use strict'; @@ -16,7 +21,7 @@ function testIndexInvalidation(isRename) { // Get the first two indexes. let cmd = {listIndexes: collName}; - Object.extend(cmd, {batchSize: 2}); + Object.extend(cmd, {cursor: {batchSize: 2}}); let res = db.runCommand(cmd); assert.commandWorked(res, 'could not run ' + tojson(cmd)); printjson(res); @@ -25,6 +30,7 @@ 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 { |