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

Make new config when retrying testServer creation #6204

Merged
merged 2 commits into from
Jul 24, 2019

Conversation

freddygv
Copy link
Contributor

Generate new config (with new ports) when retrying testServerWithConfig.

Addresses issue where bind addr is already in use:
https://circleci.com/gh/hashicorp/consul/56536#tests/containers/1

This PR also removes the reset of c.NotifyListen() in newServer since we are no longer using a single config across retries (#6200).

@freddygv freddygv requested a review from a team July 23, 2019 22:22
@@ -183,10 +185,6 @@ func newServer(c *Config) (*Server, error) {
oldNotify()
}
}
// Restore old notify to guard against re-closing `up` on a retry
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you restored this yesterday, did you want to remove it again? Otherwise you might need to rebase.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I want to remove it, don't need it anymore.

Copy link
Collaborator

@alvin-huang alvin-huang left a comment

Choose a reason for hiding this comment

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

LGTM! Just one comment in there.

@freddygv freddygv merged commit 199f6cc into master Jul 24, 2019
@freddygv freddygv deleted the bugfix/testserver-config branch July 24, 2019 14:41
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.

2 participants