0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00

failing test case for SERVER-853

This commit is contained in:
Mike Dirolf 2010-03-30 15:43:23 -04:00
parent afbb75acbe
commit 253462a338

View File

@ -476,6 +476,18 @@ namespace QueryTests {
}
};
class EmbeddedNumericTypes : public ClientBase {
public:
~EmbeddedNumericTypes() {
client().dropCollection( "unittests.querytests.NumericEmbedded" );
}
void run() {
const char *ns = "unittests.querytests.NumericEmbedded";
client().insert( ns, BSON( "a" << BSON ( "b" << 1 ) ) );
ASSERT( ! client().findOne( ns, BSON( "a" << BSON ( "b" << 1.0 ) ) ).isEmpty() );
}
};
class AutoResetIndexCache : public ClientBase {
public:
~AutoResetIndexCache() {
@ -1050,6 +1062,8 @@ namespace QueryTests {
add< EmptyFieldSpec >();
add< MultiNe >();
add< EmbeddedNe >();
/* SERVER-853
* add< EmbeddedNumericTypes >(); */
add< AutoResetIndexCache >();
add< UniqueIndex >();
add< UniqueIndexPreexistingData >();