-
-
Notifications
You must be signed in to change notification settings - Fork 772
Fixes test failures in Windows #143
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
Conversation
Use filepath when constructing local file paths. Don't test Error() text since it's platform specific for DNS errors; rather, test for type net.DNSError.
Codecov Report
@@ Coverage Diff @@
## master #143 +/- ##
=======================================
Coverage 96.05% 96.05%
=======================================
Files 9 9
Lines 1065 1065
=======================================
Hits 1023 1023
Misses 23 23
Partials 19 19Continue to review full report at Codecov.
|
|
*facepalm* I didn't use imperative mood in my git subject. How embarrassing. I can force-push a fix if you want me to. 🙄 |
jeevatkm
left a comment
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.
@moorereason Thank you for your PR. You're correct, I should have used filepath.Join to begin with.
request_test.go
Outdated
| assertNotNil(t, err) | ||
| assertEqual(t, true, strings.Contains(err.Error(), "no such host")) | ||
| assertType(t, net.DNSError{}, err) | ||
| fmt.Printf("%#v\n", err) |
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.
@moorereason Could you please remove this line?
|
@moorereason Feel free make one or more commits, I typically do I squash and merge. Also please let me the subject or comment line, I will use it during a merge. |
|
@moorereason Thanks again I have removed |
Use filepath when constructing local file paths. Don't test Error()
text since it's platform specific for DNS errors; rather, test for type
net.DNSError.