Skip to content
Myr

Fix test code for docker build

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 7db53e6 · Browse files · 1 file+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:src/history_test.go+7 added-1 removed
1package fzf23import (4 "os/user"5 "testing"6)78func TestHistory(t *testing.T) {9 maxHistory := 501011 // Invalid arguments11 for _, path := range []string{"/etc", "/proc", "/etc/sudoers"} {12 user, _ := user.Current()13 paths := []string{"/etc", "/proc"}14 if user.Name != "root" {15 paths = append(paths, "/etc/sudoers")16 }17 for _, path := range paths {18 if _, e := NewHistory(path, maxHistory); e == nil {19 t.Error("Error expected for: " + path)20 }21 }
38 unmodified lines