浏览代码

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) <arnaud.porterie@docker.com>
Arnaud Porterie (icecrime) 9 年之前
父节点
当前提交
dd7e59a40a
共有 1 个文件被更改,包括 0 次插入10 次删除
  1. 0 10
      integration-cli/docker_cli_help_test.go

+ 0 - 10
integration-cli/docker_cli_help_test.go

@@ -137,17 +137,7 @@ func (s *DockerSuite) TestHelpTextVerify(c *check.C) {
 				c.Fatal(err)
 				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) {
 func (s *DockerSuite) TestHelpExitCodesHelpOutput(c *check.C) {