summaryrefslogtreecommitdiff
path: root/src/mongo/s/write_ops/batched_update_request_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/write_ops/batched_update_request_test.cpp')
-rw-r--r--src/mongo/s/write_ops/batched_update_request_test.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/mongo/s/write_ops/batched_update_request_test.cpp b/src/mongo/s/write_ops/batched_update_request_test.cpp
index a4ce7067e82..01da12a7719 100644
--- a/src/mongo/s/write_ops/batched_update_request_test.cpp
+++ b/src/mongo/s/write_ops/batched_update_request_test.cpp
@@ -42,18 +42,20 @@ using std::string;
namespace {
TEST(BatchedUpdateRequest, Basic) {
- BSONArray updateArray = BSON_ARRAY(
- BSON(BatchedUpdateDocument::query(BSON("a" << 1))
- << BatchedUpdateDocument::updateExpr(BSON("$set" << BSON("a" << 1)))
- << BatchedUpdateDocument::multi(false) << BatchedUpdateDocument::upsert(false))
- << BSON(BatchedUpdateDocument::query(BSON("b" << 1))
- << BatchedUpdateDocument::updateExpr(BSON("$set" << BSON("b" << 2)))
- << BatchedUpdateDocument::multi(false) << BatchedUpdateDocument::upsert(false)));
+ BSONArray updateArray =
+ BSON_ARRAY(BSON(BatchedUpdateDocument::query(BSON("a" << 1))
+ << BatchedUpdateDocument::updateExpr(BSON("$set" << BSON("a" << 1)))
+ << BatchedUpdateDocument::multi(false)
+ << BatchedUpdateDocument::upsert(false))
+ << BSON(BatchedUpdateDocument::query(BSON("b" << 1))
+ << BatchedUpdateDocument::updateExpr(BSON("$set" << BSON("b" << 2)))
+ << BatchedUpdateDocument::multi(false)
+ << BatchedUpdateDocument::upsert(false)));
- BSONObj origUpdateRequestObj = BSON(BatchedUpdateRequest::collName("test")
- << BatchedUpdateRequest::updates() << updateArray
- << BatchedUpdateRequest::writeConcern(BSON("w" << 1))
- << BatchedUpdateRequest::ordered(true));
+ BSONObj origUpdateRequestObj = BSON(
+ BatchedUpdateRequest::collName("test") << BatchedUpdateRequest::updates() << updateArray
+ << BatchedUpdateRequest::writeConcern(BSON("w" << 1))
+ << BatchedUpdateRequest::ordered(true));
string errMsg;
BatchedUpdateRequest request;