-
Notifications
You must be signed in to change notification settings - Fork 357
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
Refactor net.Error.Temporary #2149
base: master
Are you sure you want to change the base?
Conversation
96f6246
to
435ae99
Compare
|
e384fa0
to
1adb2c3
Compare
I'll add unit tests for |
Signed-off-by: noor <[email protected]>
Signed-off-by: noor <[email protected]>
1adb2c3
to
ca30e58
Compare
Signed-off-by: noor <[email protected]>
ca30e58
to
6c45b91
Compare
I refactored the temporary error tests for timeout error and it seems the tests were broken. Any ideas on how to fix that? Also, I'll take a look at some production logs, as suggested on the linked issue to check for appropriate error strings. |
func (err testError) Timeout() bool { return false } | ||
func (err testError) Temporary() bool { return true } | ||
func (err testError) Error() string { return "test error" } | ||
func (err testError) Timeout() bool { return false } |
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.
Maybe the tests are waiting for Timeout() returning true?
I see that you wait for some log message but maybe it's the condition that is now different, because Temporary was "true" and Timeout is "false"
Provides a fix for #1992.