Skip to content
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

Return every time lock acquisition fails #1080

Merged
merged 1 commit into from
Jul 22, 2015
Merged

Conversation

babbottscott
Copy link

Attempt to address #800

Not sure how to pursue a negative test case for this.

@babbottscott
Copy link
Author

@armon or others, can I get a review on this, time permitting?

@armon
Copy link
Member

armon commented Jul 22, 2015

@babbottscott Does this change the behavior? It seems like the same behavior as before

armon added a commit that referenced this pull request Jul 22, 2015
Return every time lock acquisition fails
@armon armon merged commit cfa7ed7 into hashicorp:master Jul 22, 2015
@armon
Copy link
Member

armon commented Jul 22, 2015

NVM I see the output is much improved, thanks!

@babbottscott
Copy link
Author

It's not just output. The previous test would continue when err was nil, even though lockCh was also nil. If lockCh is nil, it must return.

@babbottscott
Copy link
Author

In any event, many thanks!

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.

None yet

2 participants