Skip to content

Commit

Permalink
Improve DNS test stability, restore goveralls publishing for travisci
Browse files Browse the repository at this point in the history
  • Loading branch information
eranharel committed Sep 7, 2019
1 parent e700d62 commit f557c1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -4,8 +4,8 @@ go:
- 1.11.x
- 1.12.x

#before_install:
# - go get github.com/mattn/goveralls
before_install:
- go get github.com/mattn/goveralls

env:
- GO111MODULE=on
Expand All @@ -14,4 +14,4 @@ script:
- make
# - make testflags="-race"
# submit to goveralls only on the latest version to avoid timeouts
# - if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then $GOPATH/bin/goveralls -service=travis-ci; fi
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then $GOPATH/bin/goveralls -service=travis-ci; fi
4 changes: 2 additions & 2 deletions checks/dns_test.go
Expand Up @@ -11,9 +11,9 @@ import (
)

func TestNewHostResolveCheck(t *testing.T) {
check := NewHostResolveCheck("localhost", 10*time.Microsecond, 1)
check := NewHostResolveCheck("127.0.0.1", 10*time.Microsecond, 1)

assert.Equal(t, "resolve.localhost", check.Name(), "check name")
assert.Equal(t, "resolve.127.0.0.1", check.Name(), "check name")

details, err := check.Execute()
assert.NoError(t, err, "check execution should succeed")
Expand Down

0 comments on commit f557c1f

Please sign in to comment.