浏览代码

rm-gocheck: comment out check.TestingT

sed -E -i 's#([^*])(check\.TestingT\([^\)]+\))#\1/*\2*/#g' \
-- "integration-cli/check_test.go" "pkg/discovery/discovery_test.go" "pkg/discovery/file/file_test.go" "pkg/discovery/kv/kv_test.go" "pkg/discovery/memory/memory_test.go" "pkg/discovery/nodes/nodes_test.go"

Signed-off-by: Tibor Vass <tibor@docker.com>
Tibor Vass 5 年之前
父节点
当前提交
eb67bb9fb5

+ 1 - 1
integration-cli/check_test.go

@@ -73,7 +73,7 @@ func Test(t *testing.T) {
 	cli.SetTestEnvironment(testEnv)
 	fakestorage.SetTestEnvironment(&testEnv.Execution)
 	ienv.ProtectAll(t, &testEnv.Execution)
-	check.TestingT(t)
+	/*check.TestingT(t)*/
 }
 
 func init() {

+ 1 - 1
pkg/discovery/discovery_test.go

@@ -7,7 +7,7 @@ import (
 )
 
 // Hook up gocheck into the "go test" runner.
-func Test(t *testing.T) { check.TestingT(t) }
+func Test(t *testing.T) { /*check.TestingT(t)*/ }
 
 type DiscoverySuite struct{}
 

+ 1 - 1
pkg/discovery/file/file_test.go

@@ -11,7 +11,7 @@ import (
 )
 
 // Hook up gocheck into the "go test" runner.
-func Test(t *testing.T) { check.TestingT(t) }
+func Test(t *testing.T) { /*check.TestingT(t)*/ }
 
 type DiscoverySuite struct{}
 

+ 1 - 1
pkg/discovery/kv/kv_test.go

@@ -15,7 +15,7 @@ import (
 )
 
 // Hook up gocheck into the "go test" runner.
-func Test(t *testing.T) { check.TestingT(t) }
+func Test(t *testing.T) { /*check.TestingT(t)*/ }
 
 type DiscoverySuite struct{}
 

+ 1 - 1
pkg/discovery/memory/memory_test.go

@@ -8,7 +8,7 @@ import (
 )
 
 // Hook up gocheck into the "go test" runner.
-func Test(t *testing.T) { check.TestingT(t) }
+func Test(t *testing.T) { /*check.TestingT(t)*/ }
 
 type discoverySuite struct{}
 

+ 1 - 1
pkg/discovery/nodes/nodes_test.go

@@ -9,7 +9,7 @@ import (
 )
 
 // Hook up gocheck into the "go test" runner.
-func Test(t *testing.T) { check.TestingT(t) }
+func Test(t *testing.T) { /*check.TestingT(t)*/ }
 
 type DiscoverySuite struct{}