Skip to content

Commit

Permalink
finish removing CursorIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Nov 15, 2010
1 parent 94ba794 commit c220a4a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions dbtests/querytests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -926,24 +926,6 @@ namespace QueryTests {

cout << "HelperTest slow:" << slow << " fast:" << fast << endl;

{
auto_ptr<CursorIterator> i = Helpers::find( ns() );
int n = 0;
while ( i->hasNext() ){
BSONObj o = i->next();
n++;
}
ASSERT_EQUALS( 50 , n );

i = Helpers::find( ns() , BSON( "_id" << 20 ) );
n = 0;
while ( i->hasNext() ){
BSONObj o = i->next();
n++;
}
ASSERT_EQUALS( 1 , n );
}

}
};

Expand Down

0 comments on commit c220a4a

Please sign in to comment.