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>
(cherry picked from commit 6ecff64d03
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
a11079a449
commit
4a358d0763
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ import (
|
||||||
"gotest.tools/assert"
|
"gotest.tools/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (s *DockerSuite) BenchmarkConcurrentContainerActions(c *check.C) {
|
func (s *DockerSuite) BenchmarkConcurrentContainerActions(c *testing.B) {
|
||||||
maxConcurrency := runtime.GOMAXPROCS(0)
|
maxConcurrency := runtime.GOMAXPROCS(0)
|
||||||
numIterations := c.N
|
numIterations := c.N
|
||||||
outerGroup := &sync.WaitGroup{}
|
outerGroup := &sync.WaitGroup{}
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"github.com/go-check/check"
|
"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")
|
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)
|
id := strings.TrimSpace(out)
|
||||||
ch := make(chan error, 1)
|
ch := make(chan error, 1)
|
||||||
|
|
Loading…
Reference in a new issue