diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-08-01 14:31:26 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-08-16 16:28:02 -0400 |
commit | c593ea7bb9815ced064ad8aa7ffa206fa94757c4 (patch) | |
tree | 38ca084a7db5d9de79c69d1384bdc1ee4d9cecad /src/mongo/db/repl/storage_interface_impl_test.cpp | |
parent | 40036f67d0c15e2cd319e82f8c6a1e691fb74806 (diff) | |
download | mongo-c593ea7bb9815ced064ad8aa7ffa206fa94757c4.tar.gz |
SERVER-30580 Make DBException hold a Status
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl_test.cpp')
-rw-r--r-- | src/mongo/db/repl/storage_interface_impl_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl_test.cpp b/src/mongo/db/repl/storage_interface_impl_test.cpp index 46aed798f78..acea2cd4571 100644 --- a/src/mongo/db/repl/storage_interface_impl_test.cpp +++ b/src/mongo/db/repl/storage_interface_impl_test.cpp @@ -315,8 +315,7 @@ TEST_F(StorageInterfaceImplTest, GetRollbackIDReturnsBadStatusIfDocumentHasBadFi auto badDoc = {BSON("_id" << StorageInterfaceImpl::kRollbackIdDocumentId << "bad field" << 3)}; ASSERT_OK(storage.insertDocuments(opCtx, nss, transformInserts(badDoc))); - ASSERT_EQUALS(mongo::AssertionException::convertExceptionCode(40415), - storage.getRollbackID(opCtx).getStatus()); + ASSERT_EQUALS(ErrorCodes::fromInt(40415), storage.getRollbackID(opCtx).getStatus()); } TEST_F(StorageInterfaceImplTest, GetRollbackIDReturnsBadStatusIfRollbackIDIsNotInt) { |