summaryrefslogtreecommitdiffstats
path: root/src/history_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/history_test.go')
-rw-r--r--src/history_test.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/history_test.go b/src/history_test.go
index 0a014138..6294bde8 100644
--- a/src/history_test.go
+++ b/src/history_test.go
@@ -3,7 +3,6 @@ package fzf
import (
"io/ioutil"
"os"
- "os/user"
"runtime"
"testing"
)
@@ -12,16 +11,12 @@ func TestHistory(t *testing.T) {
maxHistory := 50
// Invalid arguments
- user, _ := user.Current()
var paths []string
if runtime.GOOS == "windows" {
// GOPATH should exist, so we shouldn't be able to override it
paths = []string{os.Getenv("GOPATH")}
} else {
paths = []string{"/etc", "/proc"}
- if user.Name != "root" {
- paths = append(paths, "/etc/sudoers")
- }
}
for _, path := range paths {