Skip to content

Commit 095fb97

Browse files
authored
Adding golang 1.11 to the CI matrix (#195)
* Added golang 1.11 to Travis CI config * Fixed formatting for go 1.11
1 parent 8124282 commit 095fb97

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,8 +1,9 @@
11
language: go
22

33
go:
4-
- 1.9.x
4+
- "1.9.x"
55
- "1.10.x"
6+
- "1.11.x"
67
- master
78

89
matrix:
@@ -21,6 +22,6 @@ install:
2122

2223
script:
2324
- golint -set_exit_status $(go list ./...)
24-
- ./.travis.gofmt.sh
25+
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.11\.([0-9]+|x)$ ]]; then ./.travis.gofmt.sh; fi
2526
- go test -v -race -test.short ./... # Run tests with the race detector.
2627
- go vet -v ./... # Run Go static analyzer.

messaging/messaging_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ func checkIIDRequest(t *testing.T, b []byte, tr *http.Request, op string) {
10281028
t.Fatal(err)
10291029
}
10301030
want := map[string]interface{}{
1031-
"to": "/topics/test-topic",
1031+
"to": "/topics/test-topic",
10321032
"registration_tokens": []interface{}{"id1", "id2"},
10331033
}
10341034
if !reflect.DeepEqual(parsed, want) {

0 commit comments

Comments
 (0)