summaryrefslogtreecommitdiff
path: root/src/mongo/client/remote_command_retry_scheduler_test.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-08-10 15:52:33 -0400
committerMathias Stearn <mathias@10gen.com>2017-08-16 16:28:02 -0400
commit347935f7a5d0452146b1a73ad7ef9e249eaf1fb5 (patch)
tree00b322f5adcf3eb9c2624747a6b5b2179e440052 /src/mongo/client/remote_command_retry_scheduler_test.cpp
parentcdf7aacb213c99d3ce620761ff46b030bbd7732d (diff)
downloadmongo-347935f7a5d0452146b1a73ad7ef9e249eaf1fb5.tar.gz
SERVER-30580 Eliminate UserException and MsgAssertionException types
All users were converted to just use AssertionException.
Diffstat (limited to 'src/mongo/client/remote_command_retry_scheduler_test.cpp')
-rw-r--r--src/mongo/client/remote_command_retry_scheduler_test.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/client/remote_command_retry_scheduler_test.cpp b/src/mongo/client/remote_command_retry_scheduler_test.cpp
index d040d72ba19..6b7e844db12 100644
--- a/src/mongo/client/remote_command_retry_scheduler_test.cpp
+++ b/src/mongo/client/remote_command_retry_scheduler_test.cpp
@@ -206,7 +206,7 @@ TEST_F(RemoteCommandRetrySchedulerTest, InvalidConstruction) {
// Null executor.
ASSERT_THROWS_CODE_AND_WHAT(
RemoteCommandRetryScheduler(nullptr, request, callback, makeRetryPolicy()),
- UserException,
+ AssertionException,
ErrorCodes::BadValue,
"task executor cannot be null");
@@ -217,7 +217,7 @@ TEST_F(RemoteCommandRetrySchedulerTest, InvalidConstruction) {
executor::RemoteCommandRequest(HostAndPort(), request.dbname, request.cmdObj, nullptr),
callback,
makeRetryPolicy()),
- UserException,
+ AssertionException,
ErrorCodes::BadValue,
"source in remote command request cannot be empty");
@@ -228,7 +228,7 @@ TEST_F(RemoteCommandRetrySchedulerTest, InvalidConstruction) {
executor::RemoteCommandRequest(request.target, "", request.cmdObj, nullptr),
callback,
makeRetryPolicy()),
- UserException,
+ AssertionException,
ErrorCodes::BadValue,
"database name in remote command request cannot be empty");
@@ -239,7 +239,7 @@ TEST_F(RemoteCommandRetrySchedulerTest, InvalidConstruction) {
executor::RemoteCommandRequest(request.target, request.dbname, BSONObj(), nullptr),
callback,
makeRetryPolicy()),
- UserException,
+ AssertionException,
ErrorCodes::BadValue,
"command object in remote command request cannot be empty");
@@ -249,7 +249,7 @@ TEST_F(RemoteCommandRetrySchedulerTest, InvalidConstruction) {
request,
executor::TaskExecutor::RemoteCommandCallbackFn(),
makeRetryPolicy()),
- UserException,
+ AssertionException,
ErrorCodes::BadValue,
"remote command callback function cannot be null");
@@ -259,7 +259,7 @@ TEST_F(RemoteCommandRetrySchedulerTest, InvalidConstruction) {
request,
callback,
std::unique_ptr<RemoteCommandRetryScheduler::RetryPolicy>()),
- UserException,
+ AssertionException,
ErrorCodes::BadValue,
"retry policy cannot be null");
@@ -270,7 +270,7 @@ TEST_F(RemoteCommandRetrySchedulerTest, InvalidConstruction) {
request,
callback,
RemoteCommandRetryScheduler::makeRetryPolicy(0, Milliseconds(100), {})),
- UserException,
+ AssertionException,
ErrorCodes::BadValue,
"policy max attempts cannot be zero");
@@ -281,7 +281,7 @@ TEST_F(RemoteCommandRetrySchedulerTest, InvalidConstruction) {
request,
callback,
RemoteCommandRetryScheduler::makeRetryPolicy(1U, Milliseconds(-100), {})),
- UserException,
+ AssertionException,
ErrorCodes::BadValue,
"policy max response elapsed total cannot be negative");
}