diff options
Diffstat (limited to 'src/mongo/dbtests/matchertests.cpp')
-rw-r--r-- | src/mongo/dbtests/matchertests.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/dbtests/matchertests.cpp b/src/mongo/dbtests/matchertests.cpp index f83aa8a7fbe..f645d682c88 100644 --- a/src/mongo/dbtests/matchertests.cpp +++ b/src/mongo/dbtests/matchertests.cpp @@ -299,8 +299,10 @@ namespace MatcherTests { long dotime( const BSONObj& patt , const BSONObj& obj ) { M m( patt ); Timer t; - for ( int i=0; i<10000; i++ ) { - ASSERT( m.matches( obj ) ); + for ( int i=0; i<900000; i++ ) { + if ( !m.matches( obj ) ) { + ASSERT( 0 ); + } } return t.millis(); } |