From 6ecff64d03083f21488f2e106d3b20bf4180fb26 Mon Sep 17 00:00:00 2001 From: Tibor Vass Date: Mon, 9 Sep 2019 21:05:55 +0000 Subject: [PATCH] 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 --- integration-cli/benchmark_test.go | 2 +- integration-cli/docker_cli_logs_bench_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-cli/benchmark_test.go b/integration-cli/benchmark_test.go index 47f164ff38..ed22684823 100644 --- a/integration-cli/benchmark_test.go +++ b/integration-cli/benchmark_test.go @@ -12,7 +12,7 @@ import ( "gotest.tools/assert" ) -func (s *DockerSuite) BenchmarkConcurrentContainerActions(c *check.C) { +func (s *DockerSuite) BenchmarkConcurrentContainerActions(c *testing.B) { maxConcurrency := runtime.GOMAXPROCS(0) numIterations := c.N outerGroup := &sync.WaitGroup{} diff --git a/integration-cli/docker_cli_logs_bench_test.go b/integration-cli/docker_cli_logs_bench_test.go index eeb008de70..4008260331 100644 --- a/integration-cli/docker_cli_logs_bench_test.go +++ b/integration-cli/docker_cli_logs_bench_test.go @@ -8,7 +8,7 @@ import ( "github.com/go-check/check" ) -func (s *DockerSuite) BenchmarkLogsCLIRotateFollow(c *check.C) { +func (s *DockerSuite) BenchmarkLogsCLIRotateFollow(c *testing.B) { 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") id := strings.TrimSpace(out) ch := make(chan error, 1)