Skip to content

Commit

Permalink
ignore test zk/etcd/consul in travis-ci.org
Browse files Browse the repository at this point in the history
  • Loading branch information
smallnest committed Dec 19, 2016
1 parent a50b4ee commit a120b88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: go

go:
- 1.6.3
- 1.7.1
- 1.7.3

notifications:
email:
Expand Down
6 changes: 6 additions & 0 deletions clientselector/ping_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@
package clientselector

import (
"log"
"os"
"strings"
"testing"
)

func TestPing(t *testing.T) {
if os.Getenv("travis") != "" {
log.Println("don't test this case in travis-ci.org")
return
}
hosts := []string{"www.163.com", "www.baidu.com", "www.qq.com", "www.taobao.com"}

for _, h := range hosts {
Expand Down

0 comments on commit a120b88

Please sign in to comment.