mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Cleanup errorOut resp in info test
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
parent
0faf87598f
commit
b59d5a9dd2
1 changed files with 1 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -11,10 +10,8 @@ import (
|
||||||
func TestInfoEnsureSucceeds(t *testing.T) {
|
func TestInfoEnsureSucceeds(t *testing.T) {
|
||||||
versionCmd := exec.Command(dockerBinary, "info")
|
versionCmd := exec.Command(dockerBinary, "info")
|
||||||
out, exitCode, err := runCommandWithOutput(versionCmd)
|
out, exitCode, err := runCommandWithOutput(versionCmd)
|
||||||
errorOut(err, t, fmt.Sprintf("encountered error while running docker info: %v", err))
|
|
||||||
|
|
||||||
if err != nil || exitCode != 0 {
|
if err != nil || exitCode != 0 {
|
||||||
t.Fatal("failed to execute docker info")
|
t.Fatal("failed to execute docker info: %s, %v", out, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
stringsToCheck := []string{"Containers:", "Execution Driver:", "Kernel Version:"}
|
stringsToCheck := []string{"Containers:", "Execution Driver:", "Kernel Version:"}
|
||||||
|
|
Loading…
Add table
Reference in a new issue