From bce1acef0a3028406ce88e814a7e40a42e68f411 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Fri, 21 Jul 2017 19:32:41 -0700 Subject: [PATCH] remove root requirement on consul integration check --- command/agent/consul/int_test.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/command/agent/consul/int_test.go b/command/agent/consul/int_test.go index 737f22875..97cd56072 100644 --- a/command/agent/consul/int_test.go +++ b/command/agent/consul/int_test.go @@ -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