diff options
author | Mathias Stearn <mathias@10gen.com> | 2018-07-25 17:33:21 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2018-07-30 14:13:08 -0400 |
commit | a5f3bf878d5059215fbc5a5a371aaf2d8a85e8b9 (patch) | |
tree | 86baac1bd319bbe02ca31c2404d0b631ff5a25ad /src/mongo/executor/network_interface_mock_test.cpp | |
parent | cca8ad6cf6f47e86158a8636b6a07743bd115fcc (diff) | |
download | mongo-a5f3bf878d5059215fbc5a5a371aaf2d8a85e8b9.tar.gz |
SERVER-33135 Remove metadata accessors from command reply APIs
Now that OP_COMMAND is dead, all remaining implementations return the same
BSONObj for data and metadata.
Diffstat (limited to 'src/mongo/executor/network_interface_mock_test.cpp')
-rw-r--r-- | src/mongo/executor/network_interface_mock_test.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mongo/executor/network_interface_mock_test.cpp b/src/mongo/executor/network_interface_mock_test.cpp index a09ed4aeac0..ef7aebbdb9a 100644 --- a/src/mongo/executor/network_interface_mock_test.cpp +++ b/src/mongo/executor/network_interface_mock_test.cpp @@ -116,8 +116,8 @@ TEST_F(NetworkInterfaceMockTest, ConnectionHook) { RemoteCommandResponse expectedResponse{BSON("foo" << "bar" << "baz" - << "garply"), - BSON("bar" + << "garply" + << "bar" << "baz"), Milliseconds(30)}; @@ -125,8 +125,7 @@ TEST_F(NetworkInterfaceMockTest, ConnectionHook) { auto isMasterReplyData = BSON("iamyour" << "father"); - RemoteCommandResponse isMasterReply{ - isMasterReplyData.copy(), BSON("blah" << 2), Milliseconds(20)}; + RemoteCommandResponse isMasterReply{isMasterReplyData.copy(), Milliseconds(20)}; net().setHandshakeReplyForHost(testHost(), std::move(isMasterReply)); @@ -166,7 +165,6 @@ TEST_F(NetworkInterfaceMockTest, ConnectionHook) { testHost(), "testDB", BSON("test" << 1), rpc::makeEmptyMetadata(), nullptr}; RemoteCommandResponse actualResponseExpected{BSON("1212121212" << "12121212121212"), - BSONObj(), Milliseconds(0)}; ASSERT_OK(net().startCommand(cb, actualCommandExpected, [&](RemoteCommandResponse resp) { |