diff options
Diffstat (limited to 'src/mongo/db/storage/sorted_data_interface_test_rollback.cpp')
-rw-r--r-- | src/mongo/db/storage/sorted_data_interface_test_rollback.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mongo/db/storage/sorted_data_interface_test_rollback.cpp b/src/mongo/db/storage/sorted_data_interface_test_rollback.cpp index 0216f35f575..dc6da2a988e 100644 --- a/src/mongo/db/storage/sorted_data_interface_test_rollback.cpp +++ b/src/mongo/db/storage/sorted_data_interface_test_rollback.cpp @@ -107,7 +107,8 @@ namespace mongo { scoped_ptr<OperationContext> opCtx( harnessHelper->newOperationContext() ); { WriteUnitOfWork uow( opCtx.get() ); - ASSERT( sorted->unindex( opCtx.get(), key2, loc2, true ) ); + sorted->unindex( opCtx.get(), key2, loc2, true ); + ASSERT_EQUALS( 1, sorted->numEntries( opCtx.get() ) ); // no commit } } @@ -135,8 +136,10 @@ namespace mongo { scoped_ptr<OperationContext> opCtx( harnessHelper->newOperationContext() ); { WriteUnitOfWork uow( opCtx.get() ); - ASSERT( sorted->unindex( opCtx.get(), key1, loc1, true ) ); - ASSERT( sorted->unindex( opCtx.get(), key3, loc3, true ) ); + sorted->unindex( opCtx.get(), key1, loc1, true ); + ASSERT_EQUALS( 2, sorted->numEntries( opCtx.get() ) ); + sorted->unindex( opCtx.get(), key3, loc3, true ); + ASSERT_EQUALS( 1, sorted->numEntries( opCtx.get() ) ); // no commit } } |