[CXX-326] DBClientTest.MaxTimeMS fails on legacy Created: 03/Sep/14  Updated: 13/Nov/14  Resolved: 03/Sep/14

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Adam Midvidy Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Output:

[ RUN      ] DBClientTest.MaxTimeMS
src/mongo/unittest/dbclient_test.cpp:1037: Failure
Expected: c.findOne(TEST_NS, Query("{}").maxTimeMs(1)) throws an exception of type DBException.
  Actual: it throws nothing.
[  FAILED  ] DBClientTest.MaxTimeMS (1 ms)



 Comments   
Comment by Adam Midvidy [ 03/Sep/14 ]

This is my mistake, mongod must be run with --setParameter enableTestCommands=1 for all tests to pass.

I have updated the wiki to reflect this.

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