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>
| ... | ... |
@@ -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) |