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:
commit
b9d2ede4d4
31 changed files with 130 additions and 129 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue