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

fix TestLeader_SecondaryCA_IntermediateRenew #8702

Merged
merged 5 commits into from
Sep 18, 2020

Conversation

hanshasselberg
Copy link
Member

@hanshasselberg hanshasselberg commented Sep 17, 2020

@freddygv and I investigated this infamous flaky test and we think we fixed it!

@hanshasselberg hanshasselberg changed the title fix lessThanHalfTime fix TestLeader_SecondaryCA_IntermediateRenew Sep 17, 2020
Copy link
Contributor

@dnephin dnephin left a comment

Choose a reason for hiding this comment

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

Nice, thank you for getting this fixed!

I think RBs suggestion for renaming the func to include WithLock or something like that would be good, but I also don't want to block getting this merged.

agent/structs/connect_ca.go Outdated Show resolved Hide resolved
Copy link
Member

@mkeeler mkeeler left a comment

Choose a reason for hiding this comment

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

:shipit:

@jsosulska
Copy link
Contributor

Fixes #8686 and #7520

@hashicorp-ci
Copy link
Contributor

🍒✅ Cherry pick of commit d4877f0 onto release/1.8.x succeeded!

hashicorp-ci pushed a commit that referenced this pull request Sep 18, 2020
* fix lessThanHalfTime
* get lock for CAProvider()
* make a var to relate both vars
* rename to getCAProviderWithLock
* move CertificateTimeDriftBuffer to agent/connect/ca
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

7 participants