-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
TestErrorIs/TestNotErrorIs: check error message contents #1435
Conversation
b870369
to
4773e1b
Compare
4773e1b
to
69318ca
Compare
69318ca
to
a120f21
Compare
@dolmen Is there more that needs to be done on this PR? |
@dolmen Should I just close this, and either start fresh or give up? I don't understand what the hold up is here as I've done everything you asked. For context, this started as a simple change 8 months ago to make the misleading I need to know what kind of change is acceptable to you to improve |
@craig65535 The hold up is that there are currently 152 waiting pull requests, I'm the only active maintainer and I'm not even allowed to merge my own PRs. I also have a day job and 4 kids. |
assert/assertions_test.go
Outdated
err: io.EOF, | ||
target: io.EOF, | ||
result: false, | ||
resultErrMsg: "Target error should not be in err chain:\n" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For improved readability, split the line:
resultErrMsg: "Target error should not be in err chain:\n" + | |
resultErrMsg: ""+ | |
"Target error should not be in err chain:\n" + |
a120f21
to
1dde955
Compare
@dolmen I understand and I do appreciate the time you put into this project. But at the same time I can see a pattern where I think I've addressed everything, and then a few weeks later find out there's one more small change to make, and rinse and repeat. I made the readability change you suggested. PTAL |
@craig65535 Could you review my own PRs, in hope one other co-maintainer might see them? Just be aware that as a non-maintainer you are privileged: you just need me to approve and merge. While myself I need another maintainer to approve my MRs, but nobody else is active. |
This extends the TestErrorIs/TestNotErrorIs tests to check not only the result, but the error message that is logged.
@dolmen requested that I split this out from #1345, which improves the error message returned by ErrorAs.