Skip to content
Permalink
Browse files
Upd: travis config
  • Loading branch information
AlexStocks authored and watermelo committed Jul 18, 2020
1 parent c22d4d2 commit c3f236793de96cef4776b81bfe26530e6e3f811f
Showing 5 changed files with 4 additions and 8 deletions.
@@ -1,13 +1,11 @@
language: go

go:
- "1.11"
- "1.12"
- "1.13"

env:
- GO111MODULE=on

script:
- go fmt ./... && [[ -z `git status -s` ]]
- go mod vendor && go test ./... -bench . -race -v
- go mod vendor && go test -v client_test.go server_test.go session.go client.go connection.go const.go getty.go server.go options.go logger.go
@@ -24,8 +24,6 @@ import (
"github.com/golang/snappy"
"github.com/gorilla/websocket"
perrors "github.com/pkg/errors"
"golang.org/x/net/ipv4"
"golang.org/x/net/ipv6"
)

var (
1 go.mod
@@ -8,6 +8,7 @@ require (
github.com/golang/snappy v0.0.1
github.com/gorilla/websocket v1.4.0
github.com/pkg/errors v0.8.1
github.com/stretchr/testify v1.5.1
go.uber.org/atomic v1.4.0 // indirect
go.uber.org/multierr v1.1.0 // indirect
go.uber.org/zap v1.10.0 // indirect
2 go.sum
@@ -17,6 +17,8 @@ github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
go.uber.org/atomic v1.4.0 h1:cxzIVoETapQEqDhQu3QfnvXAV4AlzcvUCxkVUFw3+EU=
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
@@ -163,9 +163,6 @@ func (s *session) Reset() {
attrs: gxcontext.NewValuesContext(nil),
rDone: make(chan struct{}),
}

s.SetWriteTimeout(netIOTimeout)
s.SetReadTimeout(netIOTimeout)
}

// func (s *session) SetConn(conn net.Conn) { s.gettyConn = newGettyConn(conn) }

0 comments on commit c3f2367

Please sign in to comment.