Skip to content

Commit 18ff59d

Browse files
committed
travis ci config update and simplify composite literal
1 parent 48a5f15 commit 18ff59d

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.travis.yml

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

33
os: linux
44

5-
go: # use travis ci resource effectively, keep always latest 2 versions and tip :)
5+
if: (branch = master) OR (type = pull_request)
6+
7+
go: # use travis ci resource effectively, keep always latest 2 versions
68
- 1.17.x
79
- 1.16.x
8-
- tip
910

1011
install:
1112
- go get -v -t ./...
@@ -15,7 +16,3 @@ script:
1516

1617
after_success:
1718
- bash <(curl -s https://codecov.io/bash)
18-
19-
jobs:
20-
allow_failures:
21-
- go: tip

request_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,8 +1377,8 @@ func TestSetHeaderMultipleValue(t *testing.T) {
13771377

13781378
r := dclr().
13791379
SetHeaderMultiValues(map[string][]string{
1380-
"Content": []string{"text/*", "text/html", "*"},
1381-
"Authorization": []string{"Bearer xyz"},
1380+
"Content": {"text/*", "text/html", "*"},
1381+
"Authorization": {"Bearer xyz"},
13821382
})
13831383
assertEqual(t, "text/*, text/html, *", r.Header.Get("content"))
13841384
assertEqual(t, "Bearer xyz", r.Header.Get("authorization"))

0 commit comments

Comments
 (0)