summaryrefslogtreecommitdiffstats
path: root/src/history_test.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2021-01-13 10:52:15 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2021-01-13 19:10:24 +0900
commite922704f72e1ca6d5c400cc0b741155b636c8e1e (patch)
tree09df0faddbfa6791b6be006031c90f0f5c5599a8 /src/history_test.go
parentc6115735c71d4952de128f983858170d5cc15ea6 (diff)
Migrate to GitHub Actions
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 {