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:
parent
3792032a1d
commit
abf7cc678d
@ -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_;
|
||||
};
|
||||
|
||||
|
@ -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_;
|
||||
};
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user