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

Adjust etcdraft error assertions for go 1.15 #2276

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

sykesm
Copy link
Contributor

@sykesm sykesm commented Jan 13, 2021

Duration parsing error messages in go 1.15 quote the input string while earlier versions do not. This change updates the assertion to look for the prefix added by the consensus layer and the original input value. The loosened assertion should work with all current versions of Go.

Change-Id: Ia98d1c19d83a4cae578b0e35918b0e2cf9d9280c
Signed-off-by: Matthew Sykes <matthew.sykes@gmail.com>
@sykesm sykesm requested a review from a team as a code owner January 13, 2021 17:25
@wlahti wlahti merged commit 567614c into hyperledger:master Jan 13, 2021
@sykesm sykesm deleted the etcdraft-error branch January 13, 2021 20:30
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