Skip to content

Commit e8c5df8

Browse files
committed
fix unit test for Go 1.11.11
1 parent f9a6e5d commit e8c5df8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
language: go
22

33
go:
4-
- 1.11.x
4+
- 1.11.11
5+
- 1.11.5
56

67
before_install:
78
- go get -u github.com/golang/dep/cmd/dep
@@ -14,4 +15,4 @@ script:
1415
- gometalinter.v2 --vendor --deadline=300s ./...
1516

1617
notifications:
17-
email: false
18+
email: false

request_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ func TestDoOtherErrors(t *testing.T) {
267267
})
268268

269269
t.Run("request cannot be sent", func(t *testing.T) {
270-
params := Params{URL: "\n"}
270+
params := Params{URL: "http://"}
271271
err := Do(params, nil)
272272
if assert.Error(t, err) {
273273
assert.Contains(t, err.Error(), "failed to send request")

0 commit comments

Comments
 (0)