0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Update unit tests

This commit is contained in:
Aaron 2009-02-06 13:26:29 -05:00
parent 3792032a1d
commit abf7cc678d
3 changed files with 5 additions and 6 deletions

View File

@ -28,10 +28,7 @@ namespace BtreeTests {
class Base {
public:
Base() {
{
dblock lk;
setClient( ns() );
}
setClient( ns() );
BSONObjBuilder builder;
builder.append( "ns", ns() );
builder.append( "name", "testIndex" );
@ -95,6 +92,7 @@ namespace BtreeTests {
return idx_.keyPattern();
}
private:
dblock lk_;
IndexDetails idx_;
};

View File

@ -30,7 +30,6 @@ namespace NamespaceTests {
class Base {
public:
Base() {
dblock lk;
setClient( ns() );
}
~Base() {
@ -96,6 +95,7 @@ namespace NamespaceTests {
ASSERT( a.woCompare( b ) == 0 );
}
private:
dblock lk_;
IndexDetails id_;
};

View File

@ -31,7 +31,6 @@ namespace PdfileTests {
class Base {
public:
Base() {
dblock lk;
setClient( ns() );
}
~Base() {
@ -97,6 +96,8 @@ namespace PdfileTests {
static NamespaceDetails *nsd() {
return nsdetails( ns() );
}
private:
dblock lk_;
};
class Empty : public Base {