Repository name can not exceed 30 characters

Upstream-commit: 6c7dc1de86c349cdefdd445b928f29b41fa5fa16
Component: engine
This commit is contained in:
shin-
2013-05-10 08:51:13 -07:00
committed by Guillaume J. Charmes
parent 679935b8f2
commit 4c99b27c5c

View File

@ -26,7 +26,7 @@ func TestPull(t* testing.T) {
}
// Try to run something on this image to make sure the layer's been downloaded properly.
config, err := ParseRun([]string{img.Id, "echo", "Hello World"}, os.Stdout, runtime.capabilities)
config, _, err := ParseRun([]string{img.Id, "echo", "Hello World"}, runtime.capabilities)
if err != nil {
t.Fatal(err)
}
@ -97,8 +97,8 @@ func TestPush(t* testing.T) {
if err != nil {
t.Fatal(err)
}
token := hex.EncodeToString(tokenBuffer)
config, err := ParseRun([]string{"joffrey/busybox", "touch", "/" + token}, os.Stdout, runtime.capabilities)
token := hex.EncodeToString(tokenBuffer)[:29]
config, _, err := ParseRun([]string{"joffrey/busybox", "touch", "/" + token}, runtime.capabilities)
if err != nil {
t.Fatal(err)
}