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/dbtests/directclienttests.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/dbtests/directclienttests.cpp')
-rw-r--r-- | src/mongo/dbtests/directclienttests.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/dbtests/directclienttests.cpp b/src/mongo/dbtests/directclienttests.cpp index f62c14aef22..dcf60479927 100644 --- a/src/mongo/dbtests/directclienttests.cpp +++ b/src/mongo/dbtests/directclienttests.cpp @@ -137,8 +137,9 @@ public: OperationContext& opCtx = *opCtxPtr; DBDirectClient client(&opCtx); - ASSERT_THROWS_CODE( - client.query("", Query(), 1)->nextSafe(), UserException, ErrorCodes::InvalidNamespace); + ASSERT_THROWS_CODE(client.query("", Query(), 1)->nextSafe(), + AssertionException, + ErrorCodes::InvalidNamespace); } }; @@ -150,7 +151,7 @@ public: DBDirectClient client(&opCtx); ASSERT_THROWS_CODE( - client.getMore("", 1, 1)->nextSafe(), UserException, ErrorCodes::InvalidNamespace); + client.getMore("", 1, 1)->nextSafe(), AssertionException, ErrorCodes::InvalidNamespace); } }; |