Skip to content

Commit 7cbcd2f

Browse files
committed
cli/command/image: rm redundant TestPrintImageTreeNoWarningWhenRedirected
This is already covered by various tests using .golden files. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent ba93f0d commit 7cbcd2f

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

cli/command/image/tree_test.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,6 @@ func TestPrintImageTreeAnsiTty(t *testing.T) {
157157
}
158158
}
159159

160-
func TestPrintImageTreeNoWarningWhenRedirected(t *testing.T) {
161-
cli := test.NewFakeCli(nil)
162-
cli.Out().SetIsTerminal(false)
163-
cli.Err().SetIsTerminal(false)
164-
165-
printImageTree(cli, treeView{images: []topImage{}})
166-
167-
errOut := cli.ErrBuffer().String()
168-
assert.Check(t, !strings.Contains(errOut, "WARNING: This output is designed for human readability"), "stderr should not contain warning when output is redirected, got: %s", errOut)
169-
}
170-
171160
func TestPrintImageTreeGolden(t *testing.T) {
172161
testCases := []struct {
173162
name string

0 commit comments

Comments
 (0)