From e922704f72e1ca6d5c400cc0b741155b636c8e1e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 13 Jan 2021 10:52:15 +0900 Subject: Migrate to GitHub Actions --- src/history_test.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/history_test.go') 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 { -- cgit v1.2.3