1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix search integration-cli test

Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
This commit is contained in:
Victor Vieux 2014-06-24 21:16:34 +00:00
parent f6d11c8d50
commit dd258553b1

View file

@ -9,7 +9,7 @@ import (
// search for repos named "registry" on the central registry
func TestSearchOnCentralRegistry(t *testing.T) {
searchCmd := exec.Command(dockerBinary)
searchCmd := exec.Command(dockerBinary, "search", "stackbrew/busybox")
out, exitCode, err := runCommandWithOutput(searchCmd)
errorOut(err, t, fmt.Sprintf("encountered error while searching: %v", err))
@ -17,9 +17,9 @@ func TestSearchOnCentralRegistry(t *testing.T) {
t.Fatal("failed to search on the central registry")
}
if !strings.Contains(out, "registry") {
t.Fatal("couldn't find any repository named (or containing) 'registry'")
if !strings.Contains(out, "Busybox base image.") {
t.Fatal("couldn't find any repository named (or containing) 'Busybox base image.'")
}
logDone("search - search for repositories named (or containing) 'registry'")
logDone("search - search for repositories named (or containing) 'Busybox base image.'")
}