mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
remove root requirement on consul integration check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user