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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user