summaryrefslogtreecommitdiff
path: root/src/mongo/rpc/legacy_request_test.cpp
diff options
context:
space:
mode:
authorAdam Midvidy <amidvidy@gmail.com>2015-11-12 00:37:49 -0500
committerAdam Midvidy <amidvidy@gmail.com>2015-11-13 10:50:32 -0500
commit289d3fdf5c9d5b232b383c6cd871de1b75cf76b4 (patch)
tree58bcb98e92fb61e805674afbfb6db775959889dd /src/mongo/rpc/legacy_request_test.cpp
parentd7511a9244ecab9ea894bb4e8767a289314a1e34 (diff)
downloadmongo-289d3fdf5c9d5b232b383c6cd871de1b75cf76b4.tar.gz
SERVER-20884 build command replies in-place to avoid copies
Diffstat (limited to 'src/mongo/rpc/legacy_request_test.cpp')
-rw-r--r--src/mongo/rpc/legacy_request_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/rpc/legacy_request_test.cpp b/src/mongo/rpc/legacy_request_test.cpp
index 1413a139d71..82e89cb8641 100644
--- a/src/mongo/rpc/legacy_request_test.cpp
+++ b/src/mongo/rpc/legacy_request_test.cpp
@@ -43,8 +43,8 @@ TEST(LegacyRequest, InvalidNSThrows) {
rpc::LegacyRequestBuilder crb;
crb.setDatabase("foo////!!!!<><><>");
crb.setCommandName("foo");
- crb.setMetadata(BSONObj());
crb.setCommandArgs(BSON("ping" << 1));
+ crb.setMetadata(BSONObj());
auto msg = crb.done();
ASSERT_THROWS(rpc::LegacyRequest{&msg}, AssertionException);
}