summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/dbhelper_tests.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-06-18 18:15:03 -0400
committerEliot Horowitz <eliot@10gen.com>2014-06-19 01:49:58 -0400
commitb4cafb46595d6e889f8effdca16e98c3f505078e (patch)
treeb3304b672e2d540a72c7ba7424469e9b78bcce74 /src/mongo/dbtests/dbhelper_tests.cpp
parent7ce2ffdbbaac003fb608e81ae03090adef960237 (diff)
downloadmongo-b4cafb46595d6e889f8effdca16e98c3f505078e.tar.gz
SERVER-13635 SERVER-1153: can choose heap1 at startup, but doesn't remotely work yet
Diffstat (limited to 'src/mongo/dbtests/dbhelper_tests.cpp')
-rw-r--r--src/mongo/dbtests/dbhelper_tests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/dbtests/dbhelper_tests.cpp b/src/mongo/dbtests/dbhelper_tests.cpp
index dac9e27ca73..06354880e42 100644
--- a/src/mongo/dbtests/dbhelper_tests.cpp
+++ b/src/mongo/dbtests/dbhelper_tests.cpp
@@ -40,7 +40,6 @@ namespace mongo {
*/
static const char * const ns = "unittests.removetests";
- static DBDirectClient client;
// TODO: Normalize with test framework
/** Simple test for Helpers::RemoveRange. */
@@ -51,6 +50,7 @@ namespace mongo {
{
}
void run() {
+ DBDirectClient client;
for ( int i = 0; i < 10; ++i ) {
client.insert( ns, BSON( "_id" << i ) );
}
@@ -83,6 +83,7 @@ namespace mongo {
return bab.arr();
}
BSONArray docs() const {
+ DBDirectClient client;
auto_ptr<DBClientCursor> cursor = client.query( ns,
Query().hint( BSON( "_id" << 1 ) ) );
BSONArrayBuilder bab;