diff options
Diffstat (limited to 'src/mongo/s/write_ops/batched_command_response_test.cpp')
-rw-r--r-- | src/mongo/s/write_ops/batched_command_response_test.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/s/write_ops/batched_command_response_test.cpp b/src/mongo/s/write_ops/batched_command_response_test.cpp index 3635080a2d5..8ea111425be 100644 --- a/src/mongo/s/write_ops/batched_command_response_test.cpp +++ b/src/mongo/s/write_ops/batched_command_response_test.cpp @@ -51,11 +51,11 @@ TEST(BatchedCommandResponse, Basic) { << WriteErrorDetail::errInfo(BSON("more info" << 1)) << WriteErrorDetail::errMessage("index 1 failed too"))); - BSONObj writeConcernError(BSON( - "code" << 8 << "codeName" << ErrorCodes::errorString(ErrorCodes::fromInt(8)) << "errInfo" - << BSON("a" << 1) - << "errmsg" - << "norepl")); + BSONObj writeConcernError( + BSON("code" << 8 << "codeName" << ErrorCodes::errorString(ErrorCodes::Error(8)) << "errInfo" + << BSON("a" << 1) + << "errmsg" + << "norepl")); BSONObj origResponseObj = BSON(BatchedCommandResponse::ok(false) << BatchedCommandResponse::errCode(-1) |