summaryrefslogtreecommitdiff
path: root/src/mongo/rpc/metadata
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/rpc/metadata')
-rw-r--r--src/mongo/rpc/metadata/client_metadata_test.cpp4
-rw-r--r--src/mongo/rpc/metadata/config_server_metadata_test.cpp4
-rw-r--r--src/mongo/rpc/metadata/repl_set_metadata_test.cpp4
-rw-r--r--src/mongo/rpc/metadata/server_selection_metadata_test.cpp4
-rw-r--r--src/mongo/rpc/metadata/sharding_metadata_test.cpp6
5 files changed, 11 insertions, 11 deletions
diff --git a/src/mongo/rpc/metadata/client_metadata_test.cpp b/src/mongo/rpc/metadata/client_metadata_test.cpp
index 8d64e5e7697..d3d46999e34 100644
--- a/src/mongo/rpc/metadata/client_metadata_test.cpp
+++ b/src/mongo/rpc/metadata/client_metadata_test.cpp
@@ -87,7 +87,7 @@ TEST(ClientMetadatTest, TestLoopbackTest) {
<< BSON(kType << "c" << kName << "d" << kArchitecture << "e"
<< kVersion
<< "f")));
- ASSERT_EQUALS(obj, outDoc);
+ ASSERT_BSONOBJ_EQ(obj, outDoc);
}
// Serialize without application name
@@ -104,7 +104,7 @@ TEST(ClientMetadatTest, TestLoopbackTest) {
kDriver << BSON(kName << "a" << kVersion << "b") << kOperatingSystem
<< BSON(kType << "c" << kName << "d" << kArchitecture << "e" << kVersion
<< "f")));
- ASSERT_EQUALS(obj, outDoc);
+ ASSERT_BSONOBJ_EQ(obj, outDoc);
}
// Serialize with the os information automatically computed
diff --git a/src/mongo/rpc/metadata/config_server_metadata_test.cpp b/src/mongo/rpc/metadata/config_server_metadata_test.cpp
index 50c2679b8cf..6d8749ac495 100644
--- a/src/mongo/rpc/metadata/config_server_metadata_test.cpp
+++ b/src/mongo/rpc/metadata/config_server_metadata_test.cpp
@@ -52,7 +52,7 @@ TEST(ConfigSvrMetadataTest, Roundtrip) {
"opTime" << BSON("ts" << opTime.getTimestamp() << "t" << opTime.getTerm()))));
BSONObj serializedObj = builder.obj();
- ASSERT_EQ(expectedObj, serializedObj);
+ ASSERT_BSONOBJ_EQ(expectedObj, serializedObj);
auto cloneStatus = ConfigServerMetadata::readFromMetadata(serializedObj);
ASSERT_OK(cloneStatus.getStatus());
@@ -64,7 +64,7 @@ TEST(ConfigSvrMetadataTest, Roundtrip) {
clonedMetadata.writeToMetadata(&clonedBuilder);
BSONObj clonedSerializedObj = clonedBuilder.obj();
- ASSERT_EQ(expectedObj, clonedSerializedObj);
+ ASSERT_BSONOBJ_EQ(expectedObj, clonedSerializedObj);
}
} // unnamed namespace
diff --git a/src/mongo/rpc/metadata/repl_set_metadata_test.cpp b/src/mongo/rpc/metadata/repl_set_metadata_test.cpp
index bd2109fe413..4f8d316e8fb 100644
--- a/src/mongo/rpc/metadata/repl_set_metadata_test.cpp
+++ b/src/mongo/rpc/metadata/repl_set_metadata_test.cpp
@@ -70,7 +70,7 @@ TEST(ReplResponseMetadataTest, Roundtrip) {
<< -1)));
BSONObj serializedObj = builder.obj();
- ASSERT_EQ(expectedObj, serializedObj);
+ ASSERT_BSONOBJ_EQ(expectedObj, serializedObj);
auto cloneStatus = ReplSetMetadata::readFromMetadata(serializedObj);
ASSERT_OK(cloneStatus.getStatus());
@@ -85,7 +85,7 @@ TEST(ReplResponseMetadataTest, Roundtrip) {
clonedMetadata.writeToMetadata(&clonedBuilder);
BSONObj clonedSerializedObj = clonedBuilder.obj();
- ASSERT_EQ(expectedObj, clonedSerializedObj);
+ ASSERT_BSONOBJ_EQ(expectedObj, clonedSerializedObj);
}
} // unnamed namespace
diff --git a/src/mongo/rpc/metadata/server_selection_metadata_test.cpp b/src/mongo/rpc/metadata/server_selection_metadata_test.cpp
index 90b66f86185..3775f489a06 100644
--- a/src/mongo/rpc/metadata/server_selection_metadata_test.cpp
+++ b/src/mongo/rpc/metadata/server_selection_metadata_test.cpp
@@ -96,8 +96,8 @@ void checkUpconvert(const BSONObj& legacyCommand,
return bob.obj();
};
- ASSERT_EQ(upconvertedCommand, upconvertedCommandBob.done());
- ASSERT_EQ(sorted(upconvertedMetadata), sorted(upconvertedMetadataBob.done()));
+ ASSERT_BSONOBJ_EQ(upconvertedCommand, upconvertedCommandBob.done());
+ ASSERT_BSONOBJ_EQ(sorted(upconvertedMetadata), sorted(upconvertedMetadataBob.done()));
}
TEST(ServerSelectionMetadata, UpconvertValidMetadata) {
diff --git a/src/mongo/rpc/metadata/sharding_metadata_test.cpp b/src/mongo/rpc/metadata/sharding_metadata_test.cpp
index 974c7ebe0a8..cd199bd16f4 100644
--- a/src/mongo/rpc/metadata/sharding_metadata_test.cpp
+++ b/src/mongo/rpc/metadata/sharding_metadata_test.cpp
@@ -118,8 +118,8 @@ void checkUpconvert(const BSONObj& legacyCommandReply,
BSONObjBuilder commandReplyBob;
BSONObjBuilder metadataBob;
ASSERT_OK(ShardingMetadata::upconvert(legacyCommandReply, &commandReplyBob, &metadataBob));
- ASSERT_EQ(commandReplyBob.done(), upconvertedCommandReply);
- ASSERT_EQ(metadataBob.done(), upconvertedReplyMetadata);
+ ASSERT_BSONOBJ_EQ(commandReplyBob.done(), upconvertedCommandReply);
+ ASSERT_BSONOBJ_EQ(metadataBob.done(), upconvertedReplyMetadata);
}
}
@@ -207,7 +207,7 @@ void checkDownconvert(const BSONObj& commandReply,
const BSONObj& downconvertedCommand) {
BSONObjBuilder downconvertedCommandBob;
ASSERT_OK(ShardingMetadata::downconvert(commandReply, metadata, &downconvertedCommandBob));
- ASSERT_EQ(downconvertedCommandBob.done(), downconvertedCommand);
+ ASSERT_BSONOBJ_EQ(downconvertedCommandBob.done(), downconvertedCommand);
}
TEST(ShardingMetadata, Downconvert) {