[CDRIVER-988] Test limit and batchSize with mock server Created: 05/Nov/15  Updated: 20/Nov/15  Resolved: 20/Nov/15

Status: Closed
Project: C Driver
Component/s: libmongoc, tests
Affects Version/s: None
Fix Version/s: 1.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CDRIVER-838 Support find, getMore and killCursor ... Closed
Epic Link: MongoDB 3.2

 Description   

Limit and batchSize tests implemented for CDRIVER-982 don't work with find commands. Rewrite using the mock server to test that the nToReturn header of OP_QUERY and OP_GETMORE messages is properly filled out for legacy queries, and that "limit" and "batchSize" options are properly set for "find" and "getMore" commands.



 Comments   
Comment by A. Jesse Jiryu Davis [ 20/Nov/15 ]

Already tested with mock server here:

https://github.com/mongodb/mongo-c-driver/blob/16815f8f719c4e24156e026e41ce948248a5c144/tests/test-mongoc-collection-find.c#L252

Generated at Wed Feb 07 21:11:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.