diff options
author | Aaron <aaron@10gen.com> | 2009-04-24 18:19:40 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-04-24 18:19:40 -0400 |
commit | 7f6d4af0882c46704fb8f9e7cb64f25fc15cb903 (patch) | |
tree | 8129a6ca5fd9ea1a4813c1820ee221ed7e055cb0 /dbtests | |
parent | f72be5279f15ff7820ef4c8c330fe233be3cf0ac (diff) | |
download | mongo-7f6d4af0882c46704fb8f9e7cb64f25fc15cb903.tar.gz |
update test MINOR
Diffstat (limited to 'dbtests')
-rw-r--r-- | dbtests/queryoptimizertests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbtests/queryoptimizertests.cpp b/dbtests/queryoptimizertests.cpp index 773a9a8a589..8c666dbcfe5 100644 --- a/dbtests/queryoptimizertests.cpp +++ b/dbtests/queryoptimizertests.cpp @@ -880,7 +880,7 @@ namespace QueryOptimizerTests { theDataFileMgr.insert( ns(), one ); BSONObj result; ASSERT( Helpers::findOne( ns(), BSON( "a" << 1 ), result ) ); - ASSERT( !Helpers::findOne( ns(), BSON( "a" << 1 ), result, true ) ); + ASSERT_EXCEPTION( Helpers::findOne( ns(), BSON( "a" << 1 ), result, true ), AssertionException ); Helpers::ensureIndex( ns(), BSON( "a" << 1 ), false, "a_1" ); ASSERT( Helpers::findOne( ns(), BSON( "a" << 1 ), result, true ) ); } |