Browse code

Cleanup errorOut resp in info test

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)

Jessica Frazelle authored on 2014/10/15 04:46:26
Showing 1 changed files
... ...
@@ -1,7 +1,6 @@
1 1
 package main
2 2
 
3 3
 import (
4
-	"fmt"
5 4
 	"os/exec"
6 5
 	"strings"
7 6
 	"testing"
... ...
@@ -11,10 +10,8 @@ import (
11 11
 func TestInfoEnsureSucceeds(t *testing.T) {
12 12
 	versionCmd := exec.Command(dockerBinary, "info")
13 13
 	out, exitCode, err := runCommandWithOutput(versionCmd)
14
-	errorOut(err, t, fmt.Sprintf("encountered error while running docker info: %v", err))
15
-
16 14
 	if err != nil || exitCode != 0 {
17
-		t.Fatal("failed to execute docker info")
15
+		t.Fatal("failed to execute docker info: %s, %v", out, err)
18 16
 	}
19 17
 
20 18
 	stringsToCheck := []string{"Containers:", "Execution Driver:", "Kernel Version:"}