Browse code

rm-gocheck: check.C -> testing.B for BenchmarkXXX

sed -E -i 's#( Benchmark[^\(]+\([^ ]+ \*)check\.C\b#\1testing.B#g' \
-- "integration-cli/benchmark_test.go" "integration-cli/docker_cli_logs_bench_test.go"

Signed-off-by: Tibor Vass <tibor@docker.com>

Tibor Vass authored on 2019/09/10 06:05:55
Showing 2 changed files
... ...
@@ -12,7 +12,7 @@ import (
12 12
 	"gotest.tools/assert"
13 13
 )
14 14
 
15
-func (s *DockerSuite) BenchmarkConcurrentContainerActions(c *check.C) {
15
+func (s *DockerSuite) BenchmarkConcurrentContainerActions(c *testing.B) {
16 16
 	maxConcurrency := runtime.GOMAXPROCS(0)
17 17
 	numIterations := c.N
18 18
 	outerGroup := &sync.WaitGroup{}
... ...
@@ -8,7 +8,7 @@ import (
8 8
 	"github.com/go-check/check"
9 9
 )
10 10
 
11
-func (s *DockerSuite) BenchmarkLogsCLIRotateFollow(c *check.C) {
11
+func (s *DockerSuite) BenchmarkLogsCLIRotateFollow(c *testing.B) {
12 12
 	out, _ := dockerCmd(c, "run", "-d", "--log-opt", "max-size=1b", "--log-opt", "max-file=10", "busybox", "sh", "-c", "while true; do usleep 50000; echo hello; done")
13 13
 	id := strings.TrimSpace(out)
14 14
 	ch := make(chan error, 1)