1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #12107 from cpuguy83/remove_striptrailingchars

Remove `stripTrailingCharacters` from tests
This commit is contained in:
Arnaud Porterie 2015-04-06 08:46:08 -07:00
commit b9d2ede4d4
31 changed files with 130 additions and 129 deletions

View file

@ -3,6 +3,7 @@ package main
import (
"encoding/json"
"os/exec"
"strings"
"testing"
)
@ -15,7 +16,7 @@ func TestInspectApiContainerResponse(t *testing.T) {
t.Fatalf("failed to create a container: %s, %v", out, err)
}
cleanedContainerID := stripTrailingCharacters(out)
cleanedContainerID := strings.TrimSpace(out)
// test on json marshal version
// and latest version