diff --git a/test.sh b/test.sh index 8072e8e45cc..d8a5da8a468 100755 --- a/test.sh +++ b/test.sh @@ -113,7 +113,7 @@ if [[ "$RUN" =~ "fmt" ]] ; then check_gofmt() { # NOTE(@cpu): Go 1.10.3's gofmt and Go 1.11's gofmt don't agree. Let's # temporarily ignore the gofmt check when not using Go 1.11 - if [ "$TRAVIS_GO_VERSION" == "1.10.3" ]; then + if [ "$TRAVIS_GO_VERSION" != "1.11.1" ]; then return 0 fi unformatted=$(find . -name "*.go" -not -path "./vendor/*" -print | xargs -n1 gofmt -l)