remove root requirement on consul integration check

This commit is contained in:
Alex Dadgar
2017-07-21 19:32:41 -07:00
parent f2e54325df
commit bce1acef0a

View File

@@ -4,9 +4,7 @@ import (
"io/ioutil"
"log"
"os"
"os/user"
"path/filepath"
"runtime"
"testing"
"time"
@@ -39,11 +37,6 @@ func TestConsul_Integration(t *testing.T) {
if testing.Short() {
t.Skip("-short set; skipping")
}
if runtime.GOOS != "windows" {
if u, err := user.Current(); err == nil && u.Uid != "0" {
t.Skip("Must be run as root")
}
}
// Create an embedded Consul server
testconsul, err := testutil.NewTestServerConfig(func(c *testutil.TestServerConfig) {
// If -v wasn't specified squelch consul logging