diff options
Diffstat (limited to 'src/mongo/bson/bsonobjbuilder_test.cpp')
-rw-r--r-- | src/mongo/bson/bsonobjbuilder_test.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/bson/bsonobjbuilder_test.cpp b/src/mongo/bson/bsonobjbuilder_test.cpp index f2b44c552f8..d18fb900537 100644 --- a/src/mongo/bson/bsonobjbuilder_test.cpp +++ b/src/mongo/bson/bsonobjbuilder_test.cpp @@ -44,7 +44,6 @@ namespace { using mongo::BSONObj; using mongo::BSONObjBuilder; using mongo::BSONType; - using mongo::OpTime; const long long maxEncodableInt = (1 << 30) - 1; const long long minEncodableInt = -maxEncodableInt; @@ -249,16 +248,16 @@ namespace { ASSERT_EQUALS(o1, o2); } - TEST(BSONObjBuilderTest, AppendMaxTimestampOpTimeConversion) { + TEST(BSONObjBuilderTest, AppendMaxTimestampConversion) { BSONObjBuilder b; - b.appendMaxForType("a", mongo::Timestamp); + b.appendMaxForType("a", mongo::bsonTimestamp); BSONObj o1 = b.obj(); BSONElement e = o1.getField("a"); ASSERT_FALSE(e.eoo()); - OpTime opTime = e._opTime(); - ASSERT_FALSE(opTime.isNull()); + mongo::Timestamp timestamp = e.timestamp(); + ASSERT_FALSE(timestamp.isNull()); } } // unnamed namespace |