mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 13:41:36 +00: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:
@@ -15,7 +15,7 @@ func TestDiffFilenameShownInOutput(t *testing.T) {
|
||||
t.Fatalf("failed to start the container: %s, %v", out, err)
|
||||
}
|
||||
|
||||
cleanCID := stripTrailingCharacters(out)
|
||||
cleanCID := strings.TrimSpace(out)
|
||||
|
||||
diffCmd := exec.Command(dockerBinary, "diff", cleanCID)
|
||||
out, _, err = runCommandWithOutput(diffCmd)
|
||||
@@ -52,7 +52,7 @@ func TestDiffEnsureDockerinitFilesAreIgnored(t *testing.T) {
|
||||
t.Fatal(out, err)
|
||||
}
|
||||
|
||||
cleanCID := stripTrailingCharacters(out)
|
||||
cleanCID := strings.TrimSpace(out)
|
||||
|
||||
diffCmd := exec.Command(dockerBinary, "diff", cleanCID)
|
||||
out, _, err = runCommandWithOutput(diffCmd)
|
||||
@@ -79,7 +79,7 @@ func TestDiffEnsureOnlyKmsgAndPtmx(t *testing.T) {
|
||||
t.Fatal(out, err)
|
||||
}
|
||||
|
||||
cleanCID := stripTrailingCharacters(out)
|
||||
cleanCID := strings.TrimSpace(out)
|
||||
|
||||
diffCmd := exec.Command(dockerBinary, "diff", cleanCID)
|
||||
out, _, err = runCommandWithOutput(diffCmd)
|
||||
|
||||
Reference in New Issue
Block a user