aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/app_stub_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/app/app_stub_test.go')
-rw-r--r--internal/app/app_stub_test.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/app/app_stub_test.go b/internal/app/app_stub_test.go
index 9ab09197..4d2e83e9 100644
--- a/internal/app/app_stub_test.go
+++ b/internal/app/app_stub_test.go
@@ -2,7 +2,6 @@ package app_test
import (
"fmt"
- "io"
"io/fs"
"os/user"
"strconv"
@@ -128,12 +127,12 @@ func (s *stubNixOS) Open(name string) (fs.File, error) {
}
}
-func (s *stubNixOS) Exit(code int) {
- panic("called exit on stub with code " + strconv.Itoa(code))
+func (s *stubNixOS) EvalSymlinks(path string) (string, error) {
+ return path, nil
}
-func (s *stubNixOS) Stdout() io.Writer {
- panic("requested stdout")
+func (s *stubNixOS) Exit(code int) {
+ panic("called exit on stub with code " + strconv.Itoa(code))
}
func (s *stubNixOS) Paths() linux.Paths {