Sfoglia il codice sorgente

integration-cli: remove TestingT

Signed-off-by: Tibor Vass <tibor@docker.com>
Tibor Vass 5 anni fa
parent
commit
231ed42cab
2 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  1. 0 4
      integration-cli/cli/cli.go
  2. 1 1
      integration-cli/docker_utils_test.go

+ 0 - 4
integration-cli/cli/cli.go

@@ -30,10 +30,6 @@ type testingT interface {
 	Fatalf(string, ...interface{})
 }
 
-type TestingT interface {
-	testingT
-}
-
 // DockerCmd executes the specified docker command and expect a success
 func DockerCmd(t testingT, args ...string) *icmd.Result {
 	return Docker(Args(args...)).Assert(t, icmd.Success)

+ 1 - 1
integration-cli/docker_utils_test.go

@@ -40,7 +40,7 @@ func dockerCmdWithError(args ...string) (string, int, error) {
 }
 
 // Deprecated: use cli.Docker or cli.DockerCmd
-func dockerCmd(c cli.TestingT, args ...string) (string, int) {
+func dockerCmd(c testing.TB, args ...string) (string, int) {
 	result := cli.DockerCmd(c, args...)
 	return result.Combined(), result.ExitCode
 }