Unit tests fetch their base image with 'docker pull docker-ut'

This commit is contained in:
Solomon Hykes 2013-03-25 17:18:56 -07:00
parent 504663a6ee
commit d01b5894c4

View file

@ -9,8 +9,9 @@ import (
"testing"
)
// FIXME: this is no longer needed
const testLayerPath string = "/var/lib/docker/docker-ut.tar"
const unitTestImageName string = "http://get.docker.io/images/busybox"
const unitTestImageName string = "docker-ut"
var unitTestStoreBase string
var srv *Server
@ -65,7 +66,7 @@ func init() {
runtime: runtime,
}
// Retrieve the Image
if err := srv.CmdImport(os.Stdin, os.Stdout, unitTestImageName); err != nil {
if err := srv.CmdPull(os.Stdin, os.Stdout, unitTestImageName); err != nil {
panic(err)
}
}