[CXX-403] Do not rely on structure in the natural ordering in clientTest Created: 08/Nov/14  Updated: 13/Nov/14  Resolved: 10/Nov/14

Status: Closed
Project: C++ Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: legacy-1.0.0-rc2

Type: Bug Priority: Blocker - P1
Reporter: Spencer Jackson Assignee: Spencer Jackson
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

According to http://docs.mongodb.org/manual/reference/method/cursor.sort/#return-natural-order:

"The $natural parameter returns items according to their natural order within the database. This ordering is an internal implementation feature, and you should not rely on any particular structure within it."

Remove test assert which makes assumptions on the document returned by findOne({})



 Comments   
Comment by Githook User [ 10/Nov/14 ]

Author:

{u'username': u'spencerjackson', u'name': u'Spencer Jackson', u'email': u'spencer.jackson@mongodb.com'}

Message: CXX-403 Remove test assumption on natural ordering
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/644fcbfea290bd70c340d790af8e847da4cbef13

Comment by Spencer Jackson [ 08/Nov/14 ]

https://github.com/mongodb/mongo-cxx-driver/pull/202

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