File tree Expand file tree Collapse file tree 5 files changed +9
-5
lines changed Expand file tree Collapse file tree 5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 9
9
matrix :
10
10
include :
11
11
- go : 1.9.x
12
- env : GOARCH=386
12
+ env : RUN386=1
13
13
14
14
go_import_path : google.golang.org/grpc
15
15
16
16
before_install :
17
17
- if [[ "$TRAVIS_GO_VERSION" = 1.9* && "$GOARCH" != "386" ]]; then ./vet.sh -install || exit 1; fi
18
18
19
19
script :
20
+ - if [[ -n "$RUN386" ]]; then export GOARCH=386; fi
20
21
- if [[ "$TRAVIS_GO_VERSION" = 1.9* && "$GOARCH" != "386" ]]; then ./vet.sh || exit 1; fi
21
- - make test testrace
22
+ - make test || exit 1
23
+ - if [[ "$GOARCH" != "386" ]]; then make testrace; fi
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ func (qb *quotaPool) add(v int) {
156
156
func (qb * quotaPool ) lockedAdd (v int ) {
157
157
var wakeUp bool
158
158
if qb .quota <= 0 {
159
- wakeUp = true // Wake up potential watiers .
159
+ wakeUp = true // Wake up potential waiters .
160
160
}
161
161
qb .quota += v
162
162
if wakeUp && qb .quota > 0 {
Original file line number Diff line number Diff line change @@ -985,7 +985,7 @@ func (t *http2Client) handleGoAway(f *http2.GoAwayFrame) {
985
985
t .Close ()
986
986
return
987
987
}
988
- // A client can recieve multiple GoAways from the server (see
988
+ // A client can receive multiple GoAways from the server (see
989
989
// https://github.com/grpc/grpc-go/issues/1387). The idea is that the first
990
990
// GoAway will be sent with an ID of MaxInt32 and the second GoAway will be
991
991
// sent after an RTT delay with the ID of the last stream the server will
Original file line number Diff line number Diff line change @@ -1103,7 +1103,7 @@ func TestMaxStreams(t *testing.T) {
1103
1103
}
1104
1104
}
1105
1105
}()
1106
- // Test these conditions untill they pass or
1106
+ // Test these conditions until they pass or
1107
1107
// we reach the deadline (failure case).
1108
1108
for {
1109
1109
select {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ if [ "$1" = "-install" ]; then
22
22
github.com/golang/lint/golint \
23
23
golang.org/x/tools/cmd/goimports \
24
24
honnef.co/go/tools/cmd/staticcheck \
25
+ github.com/client9/misspell/cmd/misspell \
25
26
github.com/golang/protobuf/protoc-gen-go \
26
27
golang.org/x/tools/cmd/stringer
27
28
if [[ " $check_proto " = " true" ]]; then
76
77
77
78
# TODO(menghanl): fix errors in transport_test.
78
79
staticcheck -ignore google.golang.org/grpc/transport/transport_test.go:SA2002 ./...
80
+ misspell -error .
You can’t perform that action at this time.
0 commit comments