Browse code

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 authored on 2019/09/10 06:05:58
Showing 6 changed files
... ...
@@ -73,7 +73,7 @@ func Test(t *testing.T) {
73 73
 	cli.SetTestEnvironment(testEnv)
74 74
 	fakestorage.SetTestEnvironment(&testEnv.Execution)
75 75
 	ienv.ProtectAll(t, &testEnv.Execution)
76
-	check.TestingT(t)
76
+	/*check.TestingT(t)*/
77 77
 }
78 78
 
79 79
 func init() {
... ...
@@ -7,7 +7,7 @@ import (
7 7
 )
8 8
 
9 9
 // Hook up gocheck into the "go test" runner.
10
-func Test(t *testing.T) { check.TestingT(t) }
10
+func Test(t *testing.T) { /*check.TestingT(t)*/ }
11 11
 
12 12
 type DiscoverySuite struct{}
13 13
 
... ...
@@ -11,7 +11,7 @@ import (
11 11
 )
12 12
 
13 13
 // Hook up gocheck into the "go test" runner.
14
-func Test(t *testing.T) { check.TestingT(t) }
14
+func Test(t *testing.T) { /*check.TestingT(t)*/ }
15 15
 
16 16
 type DiscoverySuite struct{}
17 17
 
... ...
@@ -15,7 +15,7 @@ import (
15 15
 )
16 16
 
17 17
 // Hook up gocheck into the "go test" runner.
18
-func Test(t *testing.T) { check.TestingT(t) }
18
+func Test(t *testing.T) { /*check.TestingT(t)*/ }
19 19
 
20 20
 type DiscoverySuite struct{}
21 21
 
... ...
@@ -8,7 +8,7 @@ import (
8 8
 )
9 9
 
10 10
 // Hook up gocheck into the "go test" runner.
11
-func Test(t *testing.T) { check.TestingT(t) }
11
+func Test(t *testing.T) { /*check.TestingT(t)*/ }
12 12
 
13 13
 type discoverySuite struct{}
14 14
 
... ...
@@ -9,7 +9,7 @@ import (
9 9
 )
10 10
 
11 11
 // Hook up gocheck into the "go test" runner.
12
-func Test(t *testing.T) { check.TestingT(t) }
12
+func Test(t *testing.T) { /*check.TestingT(t)*/ }
13 13
 
14 14
 type DiscoverySuite struct{}
15 15