diff options
Diffstat (limited to 'src/mongo/s/catalog/replset/sharding_catalog_merge_chunk_test.cpp')
-rw-r--r-- | src/mongo/s/catalog/replset/sharding_catalog_merge_chunk_test.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mongo/s/catalog/replset/sharding_catalog_merge_chunk_test.cpp b/src/mongo/s/catalog/replset/sharding_catalog_merge_chunk_test.cpp index c2107be7390..23e3803379d 100644 --- a/src/mongo/s/catalog/replset/sharding_catalog_merge_chunk_test.cpp +++ b/src/mongo/s/catalog/replset/sharding_catalog_merge_chunk_test.cpp @@ -87,8 +87,8 @@ TEST_F(MergeChunkTest, MergeExistingChunksCorrectlyShouldSucceed) { // MergedChunk should have range [chunkMin, chunkMax] auto mergedChunk = uassertStatusOK(ChunkType::fromBSON(chunksVector.front())); - ASSERT_EQ(chunkMin, mergedChunk.getMin()); - ASSERT_EQ(chunkMax, mergedChunk.getMax()); + ASSERT_BSONOBJ_EQ(chunkMin, mergedChunk.getMin()); + ASSERT_BSONOBJ_EQ(chunkMax, mergedChunk.getMax()); { // Check for increment on mergedChunk's minor version @@ -150,8 +150,8 @@ TEST_F(MergeChunkTest, MergeSeveralChunksCorrectlyShouldSucceed) { // MergedChunk should have range [chunkMin, chunkMax] auto mergedChunk = uassertStatusOK(ChunkType::fromBSON(chunksVector.front())); - ASSERT_EQ(chunkMin, mergedChunk.getMin()); - ASSERT_EQ(chunkMax, mergedChunk.getMax()); + ASSERT_BSONOBJ_EQ(chunkMin, mergedChunk.getMin()); + ASSERT_BSONOBJ_EQ(chunkMax, mergedChunk.getMax()); { // Check for increment on mergedChunk's minor version @@ -217,8 +217,8 @@ TEST_F(MergeChunkTest, NewMergeShouldClaimHighestVersion) { // MergedChunk should have range [chunkMin, chunkMax] auto mergedChunk = uassertStatusOK(ChunkType::fromBSON(chunksVector.front())); - ASSERT_EQ(chunkMin, mergedChunk.getMin()); - ASSERT_EQ(chunkMax, mergedChunk.getMax()); + ASSERT_BSONOBJ_EQ(chunkMin, mergedChunk.getMin()); + ASSERT_BSONOBJ_EQ(chunkMax, mergedChunk.getMax()); { // Check for minor increment on collection version @@ -280,8 +280,8 @@ TEST_F(MergeChunkTest, MergeLeavesOtherChunksAlone) { // MergedChunk should have range [chunkMin, chunkMax] auto mergedChunk = uassertStatusOK(ChunkType::fromBSON(chunksVector.front())); - ASSERT_EQ(chunkMin, mergedChunk.getMin()); - ASSERT_EQ(chunkMax, mergedChunk.getMax()); + ASSERT_BSONOBJ_EQ(chunkMin, mergedChunk.getMin()); + ASSERT_BSONOBJ_EQ(chunkMax, mergedChunk.getMax()); { // Check for increment on mergedChunk's minor version @@ -291,8 +291,8 @@ TEST_F(MergeChunkTest, MergeLeavesOtherChunksAlone) { // OtherChunk should have been left alone auto foundOtherChunk = uassertStatusOK(ChunkType::fromBSON(chunksVector.back())); - ASSERT_EQ(otherChunk.getMin(), foundOtherChunk.getMin()); - ASSERT_EQ(otherChunk.getMax(), foundOtherChunk.getMax()); + ASSERT_BSONOBJ_EQ(otherChunk.getMin(), foundOtherChunk.getMin()); + ASSERT_BSONOBJ_EQ(otherChunk.getMax(), foundOtherChunk.getMax()); } TEST_F(MergeChunkTest, NonExistingNamespace) { |