minor: further fix race condition in refresh test #166

Merged
merged 1 commit into from Mar 1, 2013

Conversation

Projects
None yet
2 participants
Member

estolfo commented Mar 1, 2013

In the first test, test_connect_and_manual_refresh_with_secondary_down, I'm stopping only one secondary as opposed to all of them so that the primary doesn't step itself down and become a secondary. I assert that the number of secondaries has decreased by one after a refresh.

In the second test, test_automated_refresh_with_secondary_down, I stop the secondary that has been pinned for reads. Then I assert that the version and read pool change after an automatic refresh.

Contributor

TylerBrock commented Mar 1, 2013

LGTM, previous discussion in #165

@TylerBrock TylerBrock merged commit daa77bd into mongodb:master Mar 1, 2013

1 check was pending

default The Travis build is in progress
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment