mirror of
https://github.com/status-im/consul.git
synced 2025-01-24 12:40:17 +00:00
Merge pull request #2658 from hashicorp/sethvargo/fatal
Do not skip tests when Consul is missing
This commit is contained in:
commit
f2659ce97d
@ -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…
x
Reference in New Issue
Block a user