Skip to content

Commit

Permalink
Merge pull request moby#39819 from thaJeztah/fix_getContainerCount
Browse files Browse the repository at this point in the history
integration-cli: getContainerCount() fix trimming prefix
  • Loading branch information
thaJeztah committed Sep 5, 2019
2 parents fdf7f4d + 02c9b06 commit c5ca284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration-cli/docker_utils_test.go
Expand Up @@ -63,7 +63,7 @@ func getContainerCount(c *check.C) int {
for _, line := range lines {
if strings.Contains(line, containers) {
output := strings.TrimSpace(line)
output = strings.TrimLeft(output, containers)
output = strings.TrimPrefix(output, containers)
output = strings.Trim(output, " ")
containerCount, err := strconv.Atoi(output)
assert.NilError(c, err)
Expand Down

0 comments on commit c5ca284

Please sign in to comment.