mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
integration-cli: remove unneeded fmt.Sprintf() in asserts
Replaced using a bit of grep-ing; ``` find . -name "*_test.go" -exec sed -E -i 's#assert.Assert\((.*), fmt.Sprintf\((.*)\)\)$#assert.Assert\(\1, \2\)#g' '{}' \; ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
09226c4442
commit
0fabf3e41e
30 changed files with 181 additions and 187 deletions
|
@ -1,7 +1,6 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
|
@ -20,7 +19,7 @@ const stringCheckPS = "PID USER"
|
|||
// stop the tests.
|
||||
func dockerCmdWithFail(c *testing.T, args ...string) (string, int) {
|
||||
out, status, err := dockerCmdWithError(args...)
|
||||
assert.Assert(c, err != nil, fmt.Sprintf("%v", out))
|
||||
assert.Assert(c, err != nil, "%v", out)
|
||||
return out, status
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue