test: add go 1.11 to travis and remove go 1.7 (#2278)

This commit is contained in:
Menghan Li
2018-08-27 13:31:20 -07:00
committed by GitHub
parent d2aec4d7de
commit 59dd9b3f19
4 changed files with 19 additions and 17 deletions

View File

@ -2,18 +2,18 @@ language: go
matrix: matrix:
include: include:
- go: 1.10.x - go: 1.11.x
env: VET=1 RACE=1 env: VET=1 RACE=1
- go: 1.6.x - go: 1.11.x
- go: 1.7.x env: RUN386=1
- go: 1.8.x - go: 1.11.x
env: GRPC_GO_RETRY=on
- go: 1.10.x
- go: 1.9.x - go: 1.9.x
- go: 1.9.x - go: 1.9.x
env: GAE=1 env: GAE=1
- go: 1.10.x - go: 1.8.x
env: RUN386=1 - go: 1.6.x
- go: 1.10.x
env: GRPC_GO_RETRY=on
go_import_path: google.golang.org/grpc go_import_path: google.golang.org/grpc

View File

@ -41,8 +41,8 @@ var HandshakeProtocol_name = map[int32]string{
} }
var HandshakeProtocol_value = map[string]int32{ var HandshakeProtocol_value = map[string]int32{
"HANDSHAKE_PROTOCOL_UNSPECIFIED": 0, "HANDSHAKE_PROTOCOL_UNSPECIFIED": 0,
"TLS": 1, "TLS": 1,
"ALTS": 2, "ALTS": 2,
} }
func (x HandshakeProtocol) String() string { func (x HandshakeProtocol) String() string {
@ -67,8 +67,8 @@ var NetworkProtocol_name = map[int32]string{
} }
var NetworkProtocol_value = map[string]int32{ var NetworkProtocol_value = map[string]int32{
"NETWORK_PROTOCOL_UNSPECIFIED": 0, "NETWORK_PROTOCOL_UNSPECIFIED": 0,
"TCP": 1, "TCP": 1,
"UDP": 2, "UDP": 2,
} }
func (x NetworkProtocol) String() string { func (x NetworkProtocol) String() string {

View File

@ -1063,11 +1063,11 @@ func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transp
} }
ctx := NewContextWithServerTransportStream(stream.Context(), stream) ctx := NewContextWithServerTransportStream(stream.Context(), stream)
ss := &serverStream{ ss := &serverStream{
ctx: ctx, ctx: ctx,
t: t, t: t,
s: stream, s: stream,
p: &parser{r: stream}, p: &parser{r: stream},
codec: s.getCodec(stream.ContentSubtype()), codec: s.getCodec(stream.ContentSubtype()),
maxReceiveMessageSize: s.opts.maxReceiveMessageSize, maxReceiveMessageSize: s.opts.maxReceiveMessageSize,
maxSendMessageSize: s.opts.maxSendMessageSize, maxSendMessageSize: s.opts.maxSendMessageSize,
trInfo: trInfo, trInfo: trInfo,

2
vet.sh
View File

@ -85,5 +85,7 @@ google.golang.org/grpc/test/end2end_test.go:SA1019
google.golang.org/grpc/balancer_test.go:SA1019 google.golang.org/grpc/balancer_test.go:SA1019
google.golang.org/grpc/balancer.go:SA1019 google.golang.org/grpc/balancer.go:SA1019
google.golang.org/grpc/clientconn_test.go:SA1019 google.golang.org/grpc/clientconn_test.go:SA1019
google.golang.org/grpc/internal/transport/handler_server_test.go:SA1019
google.golang.org/grpc/internal/transport/handler_server.go:SA1019
' ./... ' ./...
misspell -error . misspell -error .