diff options
Diffstat (limited to 'src/mongo/s/catalog/replset/sharding_catalog_write_retry_test.cpp')
-rw-r--r-- | src/mongo/s/catalog/replset/sharding_catalog_write_retry_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/s/catalog/replset/sharding_catalog_write_retry_test.cpp b/src/mongo/s/catalog/replset/sharding_catalog_write_retry_test.cpp index e520857395f..45a9e867f8f 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_write_retry_test.cpp +++ b/src/mongo/s/catalog/replset/sharding_catalog_write_retry_test.cpp @@ -174,7 +174,7 @@ TEST_F(InsertRetryTest, DuplicateKeyErrorAfterNetworkErrorMatch) { ASSERT_EQ(request.target, kTestHosts[1]); auto query = assertGet(QueryRequest::makeFromFindCommand(kTestNamespace, request.cmdObj, false)); - ASSERT_EQ(BSON("_id" << 1), query->getFilter()); + ASSERT_BSONOBJ_EQ(BSON("_id" << 1), query->getFilter()); return vector<BSONObj>{objToInsert}; }); @@ -212,7 +212,7 @@ TEST_F(InsertRetryTest, DuplicateKeyErrorAfterNetworkErrorNotFound) { ASSERT_EQ(request.target, kTestHosts[1]); auto query = assertGet(QueryRequest::makeFromFindCommand(kTestNamespace, request.cmdObj, false)); - ASSERT_EQ(BSON("_id" << 1), query->getFilter()); + ASSERT_BSONOBJ_EQ(BSON("_id" << 1), query->getFilter()); return vector<BSONObj>(); }); @@ -250,7 +250,7 @@ TEST_F(InsertRetryTest, DuplicateKeyErrorAfterNetworkErrorMismatch) { ASSERT_EQ(request.target, kTestHosts[1]); auto query = assertGet(QueryRequest::makeFromFindCommand(kTestNamespace, request.cmdObj, false)); - ASSERT_EQ(BSON("_id" << 1), query->getFilter()); + ASSERT_BSONOBJ_EQ(BSON("_id" << 1), query->getFilter()); return vector<BSONObj>{BSON("_id" << 1 << "Value" << "TestValue has changed")}; @@ -309,7 +309,7 @@ TEST_F(InsertRetryTest, DuplicateKeyErrorAfterWriteConcernFailureMatch) { ASSERT_EQ(request.target, kTestHosts[0]); auto query = assertGet(QueryRequest::makeFromFindCommand(kTestNamespace, request.cmdObj, false)); - ASSERT_EQ(BSON("_id" << 1), query->getFilter()); + ASSERT_BSONOBJ_EQ(BSON("_id" << 1), query->getFilter()); return vector<BSONObj>{objToInsert}; }); |