File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1111 - checkout
1212 - run : go version
1313 - run : go get -t -v ./...
14- - run : diff -u <(echo -n) <(gofmt -d .)
14+ # Only run gofmt, vet & lint against the latest Go version
15+ - run : >
16+ if [[ "$LATEST" = true ]]; then
17+ golint ./...
18+ fi
19+ - run : >
20+ if [[ "$LATEST" = true ]]; then
21+ diff -u <(echo -n) <(gofmt -d .)
22+ fi
23+ - run : >
24+ if [[ "$LATEST" = true ]]; then
25+ go vet -v .
26+ fi
1527 - run : if [[ "$LATEST" = true ]]; then go vet -v .; fi
1628 - run : go test -v -race ./...
1729
2032 environment :
2133 LATEST : true
2234
23-
2435 " 1.12 " :
2536 << : *test
2637 docker :
5162 docker :
5263 - image : circleci/golang:1.7
5364
54-
5565workflows :
5666 version : 2
5767 build :
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ func TestWriteBufferPoolSync(t *testing.T) {
297297// errorWriter is an io.Writer than returns an error on all writes.
298298type errorWriter struct {}
299299
300- func (ew errorWriter ) Write (p []byte ) (int , error ) { return 0 , errors .New ("Error! " ) }
300+ func (ew errorWriter ) Write (p []byte ) (int , error ) { return 0 , errors .New ("error " ) }
301301
302302// TestWriteBufferPoolError ensures that buffer is returned to pool after error
303303// on write.
You can’t perform that action at this time.
0 commit comments