summaryrefslogtreecommitdiff
path: root/src/mongo/rpc/metadata/repl_set_metadata_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/rpc/metadata/repl_set_metadata_test.cpp')
-rw-r--r--src/mongo/rpc/metadata/repl_set_metadata_test.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/mongo/rpc/metadata/repl_set_metadata_test.cpp b/src/mongo/rpc/metadata/repl_set_metadata_test.cpp
index a2802b35416..5b3e746d8e7 100644
--- a/src/mongo/rpc/metadata/repl_set_metadata_test.cpp
+++ b/src/mongo/rpc/metadata/repl_set_metadata_test.cpp
@@ -63,18 +63,10 @@ TEST(ReplResponseMetadataTest, Roundtrip) {
BSON(kReplSetMetadataFieldName
<< BSON("term" << 3 << "lastOpCommitted"
<< BSON("ts" << opTime.getTimestamp() << "t" << opTime.getTerm())
- << "lastCommittedWall"
- << committedWallTime
- << "lastOpVisible"
+ << "lastCommittedWall" << committedWallTime << "lastOpVisible"
<< BSON("ts" << opTime2.getTimestamp() << "t" << opTime2.getTerm())
- << "configVersion"
- << 6
- << "replicaSetId"
- << metadata.getReplicaSetId()
- << "primaryIndex"
- << 12
- << "syncSourceIndex"
- << -1)));
+ << "configVersion" << 6 << "replicaSetId" << metadata.getReplicaSetId()
+ << "primaryIndex" << 12 << "syncSourceIndex" << -1)));
BSONObj serializedObj = builder.obj();
ASSERT_BSONOBJ_EQ(expectedObj, serializedObj);