From 472381db0bda9b6480488691a48d4bfc375d543e Mon Sep 17 00:00:00 2001 From: "Arnaud Porterie (icecrime)" Date: Sun, 5 Jun 2016 11:44:50 -0700 Subject: [PATCH] Remove unnecessary check for number of commands Testing for the number of commands in `help` output doesn't seem to contribute much to the quality of the project, and adds additional burden for the developer to update. Signed-off-by: Arnaud Porterie (icecrime) Upstream-commit: dd7e59a40a4c93070f71adb3ec74021241586c21 Component: engine --- .../engine/integration-cli/docker_cli_help_test.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/components/engine/integration-cli/docker_cli_help_test.go b/components/engine/integration-cli/docker_cli_help_test.go index 50eb052ca2..4c967a04bc 100644 --- a/components/engine/integration-cli/docker_cli_help_test.go +++ b/components/engine/integration-cli/docker_cli_help_test.go @@ -137,17 +137,7 @@ func (s *DockerSuite) TestHelpTextVerify(c *check.C) { c.Fatal(err) } } - - // Number of commands for standard release and experimental release - standard := 41 - experimental := 1 - expected := standard + experimental - if isLocalDaemon { - expected++ // for the daemon command - } - c.Assert(len(cmds), checker.LessOrEqualThan, expected, check.Commentf("Wrong # of cmds, it should be: %d\nThe list:\n%q", expected, cmds)) } - } func (s *DockerSuite) TestHelpExitCodesHelpOutput(c *check.C) {