Skip to content

Do not re-execute BulkWrite in WriteResult::getServer() test #808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2018

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Apr 16, 2018

bulkwrite_error-002.phpt already covers this case.

Furthermore, this was never the correct exception class. The class in 1.4 and previous versions is is BulkWriteException, which just so happens to be an instance of RuntimeException and satisfy throws(); however, #797 changes the class to InvalidArgumentException in 1.5.

@jmikola jmikola requested review from derickr and kvwalker April 16, 2018 16:16
@jmikola jmikola requested a review from kvwalker April 16, 2018 18:45
Copy link
Contributor

@derickr derickr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

bulkwrite_error-002.phpt already covers this case.
@jmikola jmikola force-pushed the 1.4-writeresult-getserver branch from 6321d3c to 042c56b Compare April 17, 2018 14:35
@jmikola jmikola merged commit 042c56b into mongodb:v1.4 Apr 17, 2018
jmikola added a commit that referenced this pull request Apr 17, 2018
@jmikola jmikola deleted the 1.4-writeresult-getserver branch April 17, 2018 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants