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

blockchain: Use new style for chainio test errors. #2595

Merged
merged 1 commit into from
Feb 23, 2021

Conversation

rstaudt2
Copy link
Member

This is rebased on #2591.

This updates the error messages in the chainio tests to consistently use the newer style of t.Errorf("%q: ...", test.name) rather than including extra information for the function name, test index, etc. The extra information is no longer needed to pinpoint an error since the test framework now shows proper line numbers for any errors that occur.

@davecgh davecgh added this to the 1.7.0 milestone Feb 17, 2021
@rstaudt2 rstaudt2 force-pushed the update-chainio-test-error-messages branch 2 times, most recently from b24aacf to 43977f8 Compare February 19, 2021 11:22
@davecgh davecgh added the test coverage Discussion and pull requests for improving test coverage. label Feb 19, 2021
@davecgh
Copy link
Member

davecgh commented Feb 22, 2021

Need a rebase and then it's good to go.

This updates the error messages in the chainio tests to consistently use
the newer style of `t.Errorf("%q: ...", test.name)` rather than
including extra information for the function name, test index, etc.
The extra information is no longer needed to pinpoint an error since the
test framework now shows proper line numbers for any errors that occur.
@rstaudt2 rstaudt2 force-pushed the update-chainio-test-error-messages branch from 43977f8 to df657b4 Compare February 23, 2021 02:09
@davecgh davecgh merged commit 73d498f into decred:master Feb 23, 2021
@rstaudt2 rstaudt2 deleted the update-chainio-test-error-messages branch March 13, 2021 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test coverage Discussion and pull requests for improving test coverage.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants