Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #12 from appleboy/appleboy
Browse files Browse the repository at this point in the history
fix go testing.
  • Loading branch information
kkdai committed Oct 26, 2016
2 parents 1139c35 + d63cde9 commit 70d92b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions .travis.yml
@@ -1,15 +1,16 @@
language: go

go:
- 1.6
- tip
- 1.6.3
- 1.7.3
- tip

before_install:
install:
- go get -v -t ./...

script:
- go vet ./...
- go test
# - $HOME/gopath/bin/goveralls -coverprofile=coverage.cov -service=travis-ci
# - bash <(curl -s https://codecov.io/bash)
#- go test -bench=. -benchmem ./...
#- sh ./install_all_cmd.sh
- go vet ./...
- go test -v -coverprofile=coverage.txt

after_success:
- bash <(curl -s https://codecov.io/bash) -f coverage.txt
2 changes: 1 addition & 1 deletion collector_test.go
Expand Up @@ -19,7 +19,7 @@ func TestGetMachineInfo(t *testing.T) {
t.Error("Constructor error")
}

ret := d.GetMachineInfo()
ret := d.GetMachineInfo("")
if ret == "" {
t.Error("Get machine info error.")
}
Expand Down

0 comments on commit 70d92b0

Please sign in to comment.