Skip to content

RUBY-2165 Yield client to block from constructor#1964

Merged
neilshweky merged 4 commits into
mongodb:masterfrom
neilshweky:RUBY-2165
Jun 18, 2020
Merged

RUBY-2165 Yield client to block from constructor#1964
neilshweky merged 4 commits into
mongodb:masterfrom
neilshweky:RUBY-2165

Conversation

@neilshweky

@neilshweky neilshweky commented Jun 18, 2020

Copy link
Copy Markdown
Contributor

The fix itself was only a 2-3 line fix... but the testing was the real kicker. The tests work, but I modified a lot more code than maybe necessary... Let me know if I need to fix that.

@neilshweky
neilshweky requested review from egiurleo and p-mongo and removed request for egiurleo June 18, 2020 15:30
@neilshweky

Copy link
Copy Markdown
Contributor Author

I tested that the client closed for a base case of the client... I didn't think the complicated client configurations affect this ticket...

Comment thread spec/mongo/client_construction_spec.rb
Comment thread lib/mongo/client.rb Outdated

@egiurleo egiurleo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

@neilshweky
neilshweky merged commit 8a2c38e into mongodb:master Jun 18, 2020
@neilshweky
neilshweky deleted the RUBY-2165 branch June 22, 2020 14:53
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