diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-08-09 18:18:04 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-08-09 18:18:30 -0400 |
commit | 4ce108f7cf1663a0cad351cd9d0d684c1c49af35 (patch) | |
tree | 77085aa144ab6781932a6443426646c4c1ec7b79 /src/mongo/db | |
parent | 2087f94e8c6d7226a4dd48155082034ae51c3cfd (diff) | |
download | mongo-4ce108f7cf1663a0cad351cd9d0d684c1c49af35.tar.gz |
SERVER-28793 Compare using toShardBSON instead of toConfigBSON in the ShardServerCatalogCacheLoader tests
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/s/shard_server_catalog_cache_loader_test.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/s/shard_server_catalog_cache_loader_test.cpp b/src/mongo/db/s/shard_server_catalog_cache_loader_test.cpp index 9ff8e837f71..1680f999a01 100644 --- a/src/mongo/db/s/shard_server_catalog_cache_loader_test.cpp +++ b/src/mongo/db/s/shard_server_catalog_cache_loader_test.cpp @@ -227,8 +227,7 @@ vector<ChunkType> ShardServerCatalogCacheLoaderTest::setUpChunkLoaderWithFiveChu ASSERT_EQUALS(collAndChunkRes.epoch, collectionType.getEpoch()); ASSERT_EQUALS(collAndChunkRes.changedChunks.size(), 5UL); for (unsigned int i = 0; i < collAndChunkRes.changedChunks.size(); ++i) { - ASSERT_BSONOBJ_EQ(collAndChunkRes.changedChunks[i].toConfigBSON(), - chunks[i].toConfigBSON()); + ASSERT_BSONOBJ_EQ(collAndChunkRes.changedChunks[i].toShardBSON(), chunks[i].toShardBSON()); } return chunks; @@ -311,8 +310,8 @@ TEST_F(ShardServerCatalogCacheLoaderTest, PrimaryLoadFromShardedAndFindNoDiff) { auto collAndChunksRes = results.getValue(); ASSERT_EQUALS(collAndChunksRes.epoch, chunks.back().getVersion().epoch()); ASSERT_EQUALS(collAndChunksRes.changedChunks.size(), 1UL); - ASSERT_BSONOBJ_EQ(collAndChunksRes.changedChunks.back().toConfigBSON(), - chunks.back().toConfigBSON()); + ASSERT_BSONOBJ_EQ(collAndChunksRes.changedChunks.back().toShardBSON(), + chunks.back().toShardBSON()); } // Same as the above unit test, PrimaryLoadFromShardedAndFindNoDiff, but caller requests complete |