Error rather than skip Consul acceptance tests if Consul isn't found

This commit is contained in:
Jeff Mitchell 2016-03-07 10:09:36 -05:00
parent 4a3d3ef300
commit 67b85b8f7f

View file

@ -100,7 +100,7 @@ func TestBackend_role_lease(t *testing.T) {
func testStartConsulServer(t *testing.T) (map[string]interface{}, *os.Process) { func testStartConsulServer(t *testing.T) (map[string]interface{}, *os.Process) {
if _, err := exec.LookPath("consul"); err != nil { if _, err := exec.LookPath("consul"); err != nil {
t.Skipf("consul not found: %s", err) t.Errorf("consul not found: %s", err)
} }
td, err := ioutil.TempDir("", "vault") td, err := ioutil.TempDir("", "vault")