diff options
Diffstat (limited to 'src/mongo/rpc/metadata/config_server_metadata_test.cpp')
-rw-r--r-- | src/mongo/rpc/metadata/config_server_metadata_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |