diff options
Diffstat (limited to 'internal/env/env_test.go')
| -rw-r--r-- | internal/env/env_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/env/env_test.go b/internal/env/env_test.go index 0e5db4a9..cce97da0 100644 --- a/internal/env/env_test.go +++ b/internal/env/env_test.go @@ -2,6 +2,7 @@ package env_test import ( "fmt" + "io/fs" "reflect" "testing" @@ -104,7 +105,9 @@ func TestCopyPaths(t *testing.T) { t.Fatalf("fatalf: %q, want %q", got, tc.fatal) } panic(stub.PanicExit) - }, func() string { return tc.tmp }, func(key string) string { return tc.env[key] }) + }, func() string { return tc.tmp }, func(key string) string { return tc.env[key] }, func(name string) (fs.FileInfo, error) { + return nil, fs.ErrNotExist + }) if tc.fatal != "" { t.Fatalf("copyPaths: expected fatal %q", tc.fatal) |
