diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2014-11-04 16:17:48 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2014-11-05 15:38:53 -0500 |
commit | d324cff2fccfd7f2f1397093e01a1eb4af9a3e52 (patch) | |
tree | 6b789f95a95ba33d6889c9ba898b77c03508ea8c /src/mongo/dbtests/updatetests.cpp | |
parent | ca0d6d5d907ebe39437b4032ccb4795946573183 (diff) | |
download | mongo-d324cff2fccfd7f2f1397093e01a1eb4af9a3e52.tar.gz |
SERVER-15882 Get rid of ensureIndex in dbtests.
Diffstat (limited to 'src/mongo/dbtests/updatetests.cpp')
-rw-r--r-- | src/mongo/dbtests/updatetests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/updatetests.cpp b/src/mongo/dbtests/updatetests.cpp index cbdde5d2976..270c5254c45 100644 --- a/src/mongo/dbtests/updatetests.cpp +++ b/src/mongo/dbtests/updatetests.cpp @@ -1632,7 +1632,7 @@ namespace UpdateTests { class IndexParentOfMod : public SetBase { public: void run() { - _client.ensureIndex( ns(), BSON( "a" << 1 ) ); + ASSERT_OK(dbtests::createIndex( &_txn, ns(), BSON( "a" << 1 ) )); _client.insert( ns(), fromjson( "{'_id':0}" ) ); _client.update( ns(), Query(), fromjson( "{$set:{'a.b':4}}" ) ); ASSERT_EQUALS( fromjson( "{'_id':0,a:{b:4}}" ) , _client.findOne( ns(), Query() ) ); |