1
0
mirror of https://github.com/moby/moby.git synced 2025-11-09 13:41:11 +03:00

Remove stripTrailingCharacters from tests

This was just an alias to `strings.TrimSpace`

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff
2015-04-06 09:21:18 -04:00
parent a73b7354a6
commit 475c65319b
31 changed files with 130 additions and 129 deletions

View File

@@ -7,6 +7,7 @@ import (
"fmt"
"os"
"os/exec"
"strings"
"testing"
"github.com/docker/docker/vendor/src/github.com/kr/pty"
@@ -20,7 +21,7 @@ func TestSaveAndLoadRepoStdout(t *testing.T) {
t.Fatalf("failed to create a container: %s, %v", out, err)
}
cleanedContainerID := stripTrailingCharacters(out)
cleanedContainerID := strings.TrimSpace(out)
repoName := "foobar-save-load-test"