Remove stripTrailingCharacters from tests

This was just an alias to `strings.TrimSpace`

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

View File

@ -49,7 +49,7 @@ func TestStartAttachCorrectExitCode(t *testing.T) {
t.Fatalf("failed to run container: %v, output: %q", err, out)
}
out = stripTrailingCharacters(out)
out = strings.TrimSpace(out)
// make sure the container has exited before trying the "start -a"
waitCmd := exec.Command(dockerBinary, "wait", out)