Merge pull request #2658 from hashicorp/sethvargo/fatal

Do not skip tests when Consul is missing
pull/2660/head
Seth Vargo 2017-01-17 15:45:32 -05:00 committed by GitHub
commit f2659ce97d
1 changed files with 2 additions and 1 deletions

View File

@ -165,7 +165,8 @@ func NewTestServer(t TestingT) *TestServer {
// an optional callback function to modify the configuration.
func NewTestServerConfig(t TestingT, cb ServerConfigCallback) *TestServer {
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")