spec/integration/retryable_errors_spec.rb in mongo-2.20.1 vs spec/integration/retryable_errors_spec.rb in mongo-2.21.0

- old
+ new

@@ -81,11 +81,11 @@ let(:operation_exception) do set_fail_point begin collection.find(a: 1).to_a - rescue Mongo::Error::OperationFailure => exception + rescue Mongo::Error::OperationFailure::Family => exception else fail('Expected operation to fail') end puts exception.message @@ -126,10 +126,10 @@ let(:operation_exception) do set_fail_point begin collection.insert_one(a: 1) - rescue Mongo::Error::OperationFailure => exception + rescue Mongo::Error::OperationFailure::Family => exception else fail('Expected operation to fail') end #puts exception.message