summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/namespace_metadata_change_notifications_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/db/s/namespace_metadata_change_notifications_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/db/s/namespace_metadata_change_notifications_test.cpp')
-rw-r--r--src/mongo/db/s/namespace_metadata_change_notifications_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/s/namespace_metadata_change_notifications_test.cpp b/src/mongo/db/s/namespace_metadata_change_notifications_test.cpp
index 66b4e28c33b..155eed7cae3 100644
--- a/src/mongo/db/s/namespace_metadata_change_notifications_test.cpp
+++ b/src/mongo/db/s/namespace_metadata_change_notifications_test.cpp
@@ -69,7 +69,7 @@ TEST_F(NamespaceMetadataChangeNotificationsTest, WaitForNotify) {
auto opCtx = client()->makeOperationContext();
opCtx->setDeadlineAfterNowBy(Milliseconds{0});
ASSERT_THROWS_CODE(
- scopedNotif.get(opCtx.get()), UserException, ErrorCodes::ExceededTimeLimit);
+ scopedNotif.get(opCtx.get()), AssertionException, ErrorCodes::ExceededTimeLimit);
}
notifications.notifyChange(kNss);
@@ -89,7 +89,7 @@ TEST_F(NamespaceMetadataChangeNotificationsTest, GiveUpWaitingForNotify) {
auto opCtx = client()->makeOperationContext();
opCtx->setDeadlineAfterNowBy(Milliseconds{0});
ASSERT_THROWS_CODE(
- scopedNotif.get(opCtx.get()), UserException, ErrorCodes::ExceededTimeLimit);
+ scopedNotif.get(opCtx.get()), AssertionException, ErrorCodes::ExceededTimeLimit);
}
notifications.notifyChange(kNss);
@@ -105,7 +105,7 @@ TEST_F(NamespaceMetadataChangeNotificationsTest, MoveConstructionWaitForNotify)
auto opCtx = client()->makeOperationContext();
opCtx->setDeadlineAfterNowBy(Milliseconds{0});
ASSERT_THROWS_CODE(
- movedScopedNotif.get(opCtx.get()), UserException, ErrorCodes::ExceededTimeLimit);
+ movedScopedNotif.get(opCtx.get()), AssertionException, ErrorCodes::ExceededTimeLimit);
}
notifications.notifyChange(kNss);