summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/jsobjtests.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-01-09 14:31:41 -0500
committerEliot Horowitz <eliot@10gen.com>2014-01-09 14:31:41 -0500
commit5e8d44f76165d8416bb1b9cba9c9bec6ec546e3c (patch)
treedf59a62acd5cca192378b42a2ab160e9fccffb23 /src/mongo/dbtests/jsobjtests.cpp
parentd2dada86c25adc8fb5af0b8af1318aeacf76f8fb (diff)
downloadmongo-5e8d44f76165d8416bb1b9cba9c9bec6ec546e3c.tar.gz
remove dead code
Diffstat (limited to 'src/mongo/dbtests/jsobjtests.cpp')
-rw-r--r--src/mongo/dbtests/jsobjtests.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/mongo/dbtests/jsobjtests.cpp b/src/mongo/dbtests/jsobjtests.cpp
index aff58e04e62..0fb7739ee38 100644
--- a/src/mongo/dbtests/jsobjtests.cpp
+++ b/src/mongo/dbtests/jsobjtests.cpp
@@ -342,50 +342,6 @@ namespace JsobjTests {
}
};
- class TimestampTest : public Base {
- public:
- void run() {
- Client *c = currentClient.get();
- if( c == 0 ) {
- Client::initThread("pretouchN");
- c = &cc();
- }
- Lock::GlobalWrite lk; // for initTimestamp
-
- BSONObjBuilder b;
- b.appendTimestamp( "a" );
- BSONObj o = b.done();
- o.toString();
- ASSERT( o.valid() );
- ASSERT_EQUALS( Timestamp, o.getField( "a" ).type() );
- BSONObjIterator i( o );
- ASSERT( i.moreWithEOO() );
- ASSERT( i.more() );
-
- BSONElement e = i.next();
- ASSERT_EQUALS( Timestamp, e.type() );
- ASSERT( i.moreWithEOO() );
- ASSERT( ! i.more() );
-
- e = i.next();
- ASSERT( e.eoo() );
-
- OpTime before = OpTime::_now();
- BSONElementManipulator( o.firstElement() ).initTimestamp();
- OpTime after = OpTime::_now();
-
- OpTime test = OpTime( o.firstElement().date() );
- ASSERT( before < test && test < after );
-
- BSONElementManipulator( o.firstElement() ).initTimestamp();
- test = OpTime( o.firstElement().date() );
- ASSERT( before < test && test < after );
-
- OpTime x(123,456);
- ASSERT_EQUALS( 528280977864LL , x.asLL() );
- }
- };
-
class Nan : public Base {
public:
void run() {
@@ -2186,7 +2142,6 @@ namespace JsobjTests {
add< BSONObjTests::WoSortOrder >();
add< BSONObjTests::IsPrefixOf >();
add< BSONObjTests::MultiKeySortOrder > ();
- add< BSONObjTests::TimestampTest >();
add< BSONObjTests::Nan >();
add< BSONObjTests::AsTempObj >();
add< BSONObjTests::AppendIntOrLL >();