Skip to content

Commit aceb50b

Browse files
committed
remove not relevant test
1 parent aa12057 commit aceb50b

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

cli/clilog/clilog_test.go

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package clilog_test
22

33
import (
44
"encoding/json"
5-
"io/fs"
65
"os"
76
"path/filepath"
87
"strings"
@@ -145,30 +144,6 @@ func TestBuilder(t *testing.T) {
145144
assertLogsJSON(t, tempJSON, info, infoLog, warn, warnLog)
146145
})
147146
})
148-
149-
t.Run("NotFound", func(t *testing.T) {
150-
t.Parallel()
151-
152-
tempFile := filepath.Join(t.TempDir(), "doesnotexist", "test.log")
153-
cmd := &serpent.Command{
154-
Use: "test",
155-
Handler: func(inv *serpent.Invocation) error {
156-
logger, closeLog, err := clilog.New(
157-
clilog.WithFilter("foo", "baz"),
158-
clilog.WithHuman(tempFile),
159-
clilog.WithVerbose(),
160-
).Build(inv)
161-
if err != nil {
162-
return err
163-
}
164-
defer closeLog()
165-
logger.Error(inv.Context(), "you will never see this")
166-
return nil
167-
},
168-
}
169-
err := cmd.Invoke().Run()
170-
require.ErrorIs(t, err, fs.ErrNotExist)
171-
})
172147
}
173148

174149
var (

0 commit comments

Comments
 (0)