diff options
Diffstat (limited to 'test/acceptance/helpers_test.go')
-rw-r--r-- | test/acceptance/helpers_test.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/test/acceptance/helpers_test.go b/test/acceptance/helpers_test.go index 8ad0166f..686504f5 100644 --- a/test/acceptance/helpers_test.go +++ b/test/acceptance/helpers_test.go @@ -351,7 +351,6 @@ func getPagesArgs(t *testing.T, listeners []ListenSpec, promPort string, extraAr args = append(args, "-metrics-address", promPort) } - args = append(args, getPagesDaemonArgs(t)...) args = append(args, extraArgs...) return @@ -366,24 +365,6 @@ func contains(slice []string, s string) bool { return false } -func getPagesDaemonArgs(t *testing.T) []string { - if !(*daemonize) { - return nil - } - - if os.Geteuid() != 0 { - t.Log("Privilege-dropping requested but not running as root!") - t.FailNow() - return nil - } - - out := []string{} - - t.Log("Running pages as a daemon") - - return out -} - // Does a HTTP(S) GET against the listener specified, setting a fake // Host: and constructing the URL from the listener and the URL suffix. func GetPageFromListener(t *testing.T, spec ListenSpec, host, urlsuffix string) (*http.Response, error) { |