mirror of
https://github.com/docker/cli.git
synced 2026-08-24 10:05:37 -05:00
Merge pull request #6975 from thaJeztah/rm_redundant_test
cli/command/image: rm redundant TestPrintImageTreeNoWarningWhenRedirected
This commit is contained in:
@@ -157,17 +157,6 @@ func TestPrintImageTreeAnsiTty(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestPrintImageTreeNoWarningWhenRedirected(t *testing.T) {
|
||||
cli := test.NewFakeCli(nil)
|
||||
cli.Out().SetIsTerminal(false)
|
||||
cli.Err().SetIsTerminal(false)
|
||||
|
||||
printImageTree(cli, treeView{images: []topImage{}})
|
||||
|
||||
errOut := cli.ErrBuffer().String()
|
||||
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)
|
||||
}
|
||||
|
||||
func TestPrintImageTreeGolden(t *testing.T) {
|
||||
testCases := []struct {
|
||||
name string
|
||||
|
||||
Reference in New Issue
Block a user