1
0
mirror of https://github.com/moby/moby.git synced 2025-07-30 18:23:29 +03:00

Cleanup errorOut resp in inspect tests

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
Jessica Frazelle
2014-10-14 13:06:06 -07:00
parent d33f2bdb11
commit ac24cabd9d
2 changed files with 6 additions and 4 deletions

View File

@ -2,7 +2,6 @@ package main
import (
"encoding/json"
"fmt"
"os/exec"
"testing"
)
@ -10,7 +9,9 @@ import (
func TestInspectApiContainerResponse(t *testing.T) {
runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "true")
out, _, err := runCommandWithOutput(runCmd)
errorOut(err, t, fmt.Sprintf("failed to create a container: %v %v", out, err))
if err != nil {
t.Fatalf("failed to create a container: %s, %v", out, err)
}
cleanedContainerID := stripTrailingCharacters(out)