summaryrefslogtreecommitdiff
path: root/dbtests
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-01-29 22:51:50 -0500
committerAaron <aaron@10gen.com>2009-01-29 22:51:50 -0500
commitd76e24438a58ffa269c4bd8af0a286119d52fe6e (patch)
tree73b16e63db8cd0a8639a0a8325af744b8ee0ca41 /dbtests
parentdf2b701b0fbcd0f76619776036a525dfb24c954a (diff)
downloadmongo-d76e24438a58ffa269c4bd8af0a286119d52fe6e.tar.gz
Fix unit tests after dbclient change
Diffstat (limited to 'dbtests')
-rw-r--r--dbtests/mockdbclient.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbtests/mockdbclient.h b/dbtests/mockdbclient.h
index 9f44a5f212a..739e7e5d666 100644
--- a/dbtests/mockdbclient.h
+++ b/dbtests/mockdbclient.h
@@ -25,7 +25,7 @@ class MockDBClientConnection : public DBClientConnection {
public:
MockDBClientConnection() : connect_() {}
virtual
- BSONObj findOne(const char *ns, BSONObj query, BSONObj *fieldsToReturn = 0, int queryOptions = 0) {
+ BSONObj findOne(const char *ns, Query query, BSONObj *fieldsToReturn = 0, int queryOptions = 0) {
return one_;
}
virtual
@@ -61,11 +61,11 @@ public:
rp_( rp ),
cc_( cc ) {
}
- virtual BSONObj findOne(const char *ns, BSONObj query, BSONObj *fieldsToReturn = 0, int queryOptions = 0) {
+ virtual BSONObj findOne(const char *ns, Query query, BSONObj *fieldsToReturn = 0, int queryOptions = 0) {
if ( cc_ ) cc_->beforeCommand();
SetGlobalReplPair s( rp_ );
BSONObjBuilder result;
- result.append( "ok", runCommandAgainstRegistered( "admin.$cmd", query, result ) ? 1.0 : 0.0 );
+ result.append( "ok", runCommandAgainstRegistered( "admin.$cmd", query.obj, result ) ? 1.0 : 0.0 );
if ( cc_ ) cc_->afterCommand();
return result.doneAndDecouple();
}