Skip to content

Commit

Permalink
add comment explaining why we do not check for non-zero cursor id
Browse files Browse the repository at this point in the history
  • Loading branch information
W-A-James committed Oct 14, 2024
1 parent 7fe11d6 commit 3702a72
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ describe('CSOT spec prose tests', function () {
* 1. Verify that an `aggregate` command and two `getMore` commands were executed against the `db.coll` collection during the test.
*/
it('sends correct number of aggregate and getMores', metadata, async function () {
// NOTE: we don't check for a non-zero ID since we lazily send the initial aggregate to the
// server. See ChangeStreamCursor._initialize
const changeStream = client
.db('db')
.collection('coll')
Expand Down

0 comments on commit 3702a72

Please sign in to comment.