Browse Source

Merge pull request #2658 from hashicorp/sethvargo/fatal

Do not skip tests when Consul is missing
pull/2660/head
Seth Vargo 8 years ago committed by GitHub
parent
commit
f2659ce97d
  1. 3
      testutil/server.go

3
testutil/server.go

@ -165,7 +165,8 @@ func NewTestServer(t TestingT) *TestServer {
// an optional callback function to modify the configuration. // an optional callback function to modify the configuration.
func NewTestServerConfig(t TestingT, cb ServerConfigCallback) *TestServer { func NewTestServerConfig(t TestingT, cb ServerConfigCallback) *TestServer {
if path, err := exec.LookPath("consul"); err != nil || path == "" { if path, err := exec.LookPath("consul"); err != nil || path == "" {
t.Skip("consul not found on $PATH, skipping") t.Fatal("consul not found on $PATH - download and install " +
"consul or skip this test")
} }
dataDir, err := ioutil.TempDir("", "consul") dataDir, err := ioutil.TempDir("", "consul")

Loading…
Cancel
Save