Skip to content
Permalink
Browse files
Imp: travis script
  • Loading branch information
AlexStocks authored and watermelo committed Jul 18, 2020
1 parent 805e171 commit e0569c013ab7fccde87afd38ce15af4a65b98ca5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
@@ -1,11 +1,16 @@
language: go

os:
- linux

go:
- "1.13"

env:
- GO111MODULE=on

install: true

script:
- go fmt ./... && [[ -z `git status -s` ]]
- go mod vendor && go test $(go list ./... | grep -v vendor | grep -v demo) -coverprofile=coverage.txt -covermode=atomic
@@ -448,8 +448,8 @@ func (s *session) WriteBytesArray(pkgs ...[]byte) error {

// reduce syscall and memcopy for multiple packages
if _, ok := s.Connection.(*gettyTCPConn); ok {
if _, err := s.Connection.send(pkgs); err != nil {
return perrors.Wrapf(err, "s.Connection.Write(pkgs num:%d)", len(pkgs))
if _, err := s.Connection.send(pkgs); err != nil {
return perrors.Wrapf(err, "s.Connection.Write(pkgs num:%d)", len(pkgs))
}
}

0 comments on commit e0569c0

Please sign in to comment.