mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Cleanup errorOut resp in search tests
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
parent
73eadbc6a1
commit
ef787eb824
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 TestSearchOnCentralRegistry(t *testing.T) {
|
func TestSearchOnCentralRegistry(t *testing.T) {
|
||||||
searchCmd := exec.Command(dockerBinary, "search", "busybox")
|
searchCmd := exec.Command(dockerBinary, "search", "busybox")
|
||||||
out, exitCode, err := runCommandWithOutput(searchCmd)
|
out, exitCode, err := runCommandWithOutput(searchCmd)
|
||||||
errorOut(err, t, fmt.Sprintf("encountered error while searching: %v", err))
|
|
||||||
|
|
||||||
if err != nil || exitCode != 0 {
|
if err != nil || exitCode != 0 {
|
||||||
t.Fatal("failed to search on the central registry")
|
t.Fatal("failed to search on the central registry: %s, %v", out, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.Contains(out, "Busybox base image.") {
|
if !strings.Contains(out, "Busybox base image.") {
|
||||||
|
|
Loading…
Add table
Reference in a new issue