diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-08-10 15:52:33 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-08-16 16:28:02 -0400 |
commit | 347935f7a5d0452146b1a73ad7ef9e249eaf1fb5 (patch) | |
tree | 00b322f5adcf3eb9c2624747a6b5b2179e440052 /src/mongo/rpc/command_request_test.cpp | |
parent | cdf7aacb213c99d3ce620761ff46b030bbd7732d (diff) | |
download | mongo-347935f7a5d0452146b1a73ad7ef9e249eaf1fb5.tar.gz |
SERVER-30580 Eliminate UserException and MsgAssertionException types
All users were converted to just use AssertionException.
Diffstat (limited to 'src/mongo/rpc/command_request_test.cpp')
-rw-r--r-- | src/mongo/rpc/command_request_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/rpc/command_request_test.cpp b/src/mongo/rpc/command_request_test.cpp index 830c1f04472..aad6dd1d3ff 100644 --- a/src/mongo/rpc/command_request_test.cpp +++ b/src/mongo/rpc/command_request_test.cpp @@ -117,7 +117,7 @@ TEST(CommandRequest, EmptyCommandObjThrows) { Message msg; msg.setData(dbCommand, opCommandData.data(), opCommandData.size()); - ASSERT_THROWS_CODE(rpc::ParsedOpCommand::parse(msg), UserException, 39950); + ASSERT_THROWS_CODE(rpc::ParsedOpCommand::parse(msg), AssertionException, 39950); } TEST(CommandRequest, MismatchBetweenCommandNamesThrows) { @@ -152,7 +152,7 @@ TEST(CommandRequest, MismatchBetweenCommandNamesThrows) { Message msg; msg.setData(dbCommand, opCommandData.data(), opCommandData.size()); - ASSERT_THROWS_CODE(rpc::ParsedOpCommand::parse(msg), UserException, 39950); + ASSERT_THROWS_CODE(rpc::ParsedOpCommand::parse(msg), AssertionException, 39950); } } // namespace |