1
0
Fork 0
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:
Sebastiaan van Stijn 2019-09-11 12:57:29 +02:00
parent 09226c4442
commit 0fabf3e41e
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
30 changed files with 181 additions and 187 deletions

View file

@ -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
}