summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog/replset/catalog_manager_replica_set_shard_collection_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/catalog/replset/catalog_manager_replica_set_shard_collection_test.cpp')
-rw-r--r--src/mongo/s/catalog/replset/catalog_manager_replica_set_shard_collection_test.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/mongo/s/catalog/replset/catalog_manager_replica_set_shard_collection_test.cpp b/src/mongo/s/catalog/replset/catalog_manager_replica_set_shard_collection_test.cpp
index 7e4fdb8330c..901f12798ea 100644
--- a/src/mongo/s/catalog/replset/catalog_manager_replica_set_shard_collection_test.cpp
+++ b/src/mongo/s/catalog/replset/catalog_manager_replica_set_shard_collection_test.cpp
@@ -340,8 +340,11 @@ TEST_F(ShardCollectionTest, noInitialChunksOrData) {
{
BSONObj logChangeDetail =
BSON("shardKey" << keyPattern.toBSON() << "collection" << ns << "primary"
- << shard.getName() + ":" + shard.getHost() << "initShards"
- << BSONArray() << "numChunks" << 1);
+ << shard.getName() + ":" + shard.getHost()
+ << "initShards"
+ << BSONArray()
+ << "numChunks"
+ << 1);
expectChangeLogCreate(configHost, BSON("ok" << 1));
expectChangeLogInsert(
configHost, network()->now(), "shardCollection.start", ns, logChangeDetail);
@@ -511,9 +514,11 @@ TEST_F(ShardCollectionTest, withInitialChunks) {
{
BSONObj logChangeDetail =
BSON("shardKey" << keyPattern.toBSON() << "collection" << ns << "primary"
- << shard0.getName() + ":" + shard0.getHost() << "initShards"
+ << shard0.getName() + ":" + shard0.getHost()
+ << "initShards"
<< BSON_ARRAY(shard0.getName() << shard1.getName() << shard2.getName())
- << "numChunks" << (int)expectedChunks.size());
+ << "numChunks"
+ << (int)expectedChunks.size());
expectChangeLogCreate(configHost, BSON("ok" << 1));
expectChangeLogInsert(
configHost, network()->now(), "shardCollection.start", ns, logChangeDetail);
@@ -655,8 +660,11 @@ TEST_F(ShardCollectionTest, withInitialData) {
{
BSONObj logChangeDetail =
BSON("shardKey" << keyPattern.toBSON() << "collection" << ns << "primary"
- << shard.getName() + ":" + shard.getHost() << "initShards"
- << BSONArray() << "numChunks" << 1);
+ << shard.getName() + ":" + shard.getHost()
+ << "initShards"
+ << BSONArray()
+ << "numChunks"
+ << 1);
expectChangeLogCreate(configHost, BSON("ok" << 1));
expectChangeLogInsert(
configHost, network()->now(), "shardCollection.start", ns, logChangeDetail);