summaryrefslogtreecommitdiff
path: root/src/mongo/client
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2017-05-02 13:48:44 -0400
committerBenety Goh <benety@mongodb.com>2017-05-03 15:42:47 -0400
commit7a92e3b630f0d2b7feba091185008eb8c16bd9bb (patch)
treeef56d50d0f404db8dd1802471057613abc8465c1 /src/mongo/client
parente6f5eb253deff5ecb1cf5fb437b948a3bd5b02dd (diff)
downloadmongo-7a92e3b630f0d2b7feba091185008eb8c16bd9bb.tar.gz
SERVER-28218 add BSON() macro support for OpTime
Diffstat (limited to 'src/mongo/client')
-rw-r--r--src/mongo/client/replica_set_monitor_test.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/client/replica_set_monitor_test.cpp b/src/mongo/client/replica_set_monitor_test.cpp
index 838728c5946..662fe1b1f08 100644
--- a/src/mongo/client/replica_set_monitor_test.cpp
+++ b/src/mongo/client/replica_set_monitor_test.cpp
@@ -1360,7 +1360,7 @@ TEST(ReplicaSetMonitor, MaxStalenessMSMatch) {
<< BSON("lastWriteDate" << (nonStale ? lastWriteDateNonStale
: lastWriteDateStale)
<< "opTime"
- << opTime.toBSON())
+ << opTime)
<< "ok"
<< true));
ns = refresher.getNextStep();
@@ -1410,7 +1410,7 @@ TEST(ReplicaSetMonitor, MaxStalenessMSNoMatch) {
<< BSON("lastWriteDate" << (primary ? lastWriteDateNonStale
: lastWriteDateStale)
<< "opTime"
- << opTime.toBSON())
+ << opTime)
<< "ok"
<< true));
@@ -1462,7 +1462,7 @@ TEST(ReplicaSetMonitor, MaxStalenessMSNoPrimaryMatch) {
<< (isNonStale ? lastWriteDateNonStale
: lastWriteDateStale)
<< "opTime"
- << opTime.toBSON())
+ << opTime)
<< "ok"
<< true));
@@ -1516,7 +1516,7 @@ TEST(ReplicaSetMonitor, MaxStalenessMSAllFailed) {
<< (isNonStale ? lastWriteDateNonStale
: lastWriteDateStale)
<< "opTime"
- << opTime.toBSON())
+ << opTime)
<< "ok"
<< true));
@@ -1568,7 +1568,7 @@ TEST(ReplicaSetMonitor, MaxStalenessMSAllButPrimaryFailed) {
<< BSON("lastWriteDate" << (primary ? lastWriteDateNonStale
: lastWriteDateStale)
<< "opTime"
- << opTime.toBSON())
+ << opTime)
<< "ok"
<< true));
ns = refresher.getNextStep();
@@ -1620,7 +1620,7 @@ TEST(ReplicaSetMonitor, MaxStalenessMSOneSecondaryFailed) {
<< BSON("lastWriteDate" << (primary ? lastWriteDateNonStale
: lastWriteDateStale)
<< "opTime"
- << opTime.toBSON())
+ << opTime)
<< "ok"
<< true));
ns = refresher.getNextStep();
@@ -1673,7 +1673,7 @@ TEST(ReplicaSetMonitor, MaxStalenessMSNonStaleSecondaryMatched) {
<< (isNonStale ? lastWriteDateNonStale
: lastWriteDateStale)
<< "opTime"
- << opTime.toBSON())
+ << opTime)
<< "ok"
<< true));
ns = refresher.getNextStep();