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

Fixes test failures in Windows #143

Merged
merged 3 commits into from
Apr 17, 2018
Merged

Fixes test failures in Windows #143

merged 3 commits into from
Apr 17, 2018

Conversation

moorereason
Copy link
Contributor

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.

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
Copy link

codecov bot commented Apr 17, 2018

Codecov Report

Merging #143 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #143   +/-   ##
=======================================
  Coverage   96.05%   96.05%           
=======================================
  Files           9        9           
  Lines        1065     1065           
=======================================
  Hits         1023     1023           
  Misses         23       23           
  Partials       19       19

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update db388cd...3b8cf3c. Read the comment docs.

@moorereason
Copy link
Contributor Author

*facepalm*

I didn't use imperative mood in my git subject. How embarrassing. I can force-push a fix if you want me to. 🙄

Copy link
Member

@jeevatkm jeevatkm left a 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
@@ -1192,7 +1197,8 @@ func TestSRVInvalidService(t *testing.T) {
Get("/")

assertNotNil(t, err)
assertEqual(t, true, strings.Contains(err.Error(), "no such host"))
assertType(t, net.DNSError{}, err)
fmt.Printf("%#v\n", err)
Copy link
Member

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?

@jeevatkm
Copy link
Member

@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.

@jeevatkm
Copy link
Member

@moorereason Thanks again I have removed fmt.Printand gonna merge it.

@jeevatkm jeevatkm merged commit afb75f6 into go-resty:master Apr 17, 2018
@jeevatkm jeevatkm added this to the v1.5 Milestone milestone Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants