Skip to content

Commit 6487ba1

Browse files
committed
TravisCI: Don't run tests with race.
This modifies the goclean.sh script that is executed on Travis to only run the tests without the race detector. While it is nice to run the race detector on the tests, unfortunately there is a limit to the number of goroutines that can be launched while running it. Since Travis is now much slower than it once was, this causes a ton of false positive failures.
1 parent 9f0e66e commit 6487ba1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

goclean.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# 3. go vet (http://golang.org/cmd/vet)
66
# 4. gosimple (https://github.com/dominikh/go-simple)
77
# 5. unconvert (https://github.com/mdempsky/unconvert)
8-
# 6. race detector (http://blog.golang.org/race-detector)
98
#
109
# gometalinter (github.com/alecthomas/gometalinter) is used to run each static
1110
# checker.
@@ -36,4 +35,4 @@ test -z "$(gometalinter -j 4 --disable-all \
3635
--enable=gosimple \
3736
--enable=unconvert \
3837
--deadline=10m $linter_targets 2>&1 | grep -v 'ALL_CAPS\|OP_' 2>&1 | tee /dev/stderr)"
39-
env GORACE="halt_on_error=1" go test -race -tags rpctest $linter_targets
38+
go test -tags rpctest $linter_targets

0 commit comments

Comments
 (0)