|
@@ -137,7 +137,7 @@ func TestVolume(t *testing.T) {
|
|
pushingPool: make(map[string]struct{}),
|
|
pushingPool: make(map[string]struct{}),
|
|
}
|
|
}
|
|
|
|
|
|
- buildfile := NewBuildFile(srv, ioutil.Discard)
|
|
|
|
|
|
+ buildfile := NewBuildFile(srv, ioutil.Discard, false)
|
|
imgId, err := buildfile.Build(mkTestContext(`
|
|
imgId, err := buildfile.Build(mkTestContext(`
|
|
from %s
|
|
from %s
|
|
VOLUME /test
|
|
VOLUME /test
|
|
@@ -153,7 +153,7 @@ CMD Hello world
|
|
if len(img.Config.Volumes) == 0 {
|
|
if len(img.Config.Volumes) == 0 {
|
|
t.Fail()
|
|
t.Fail()
|
|
}
|
|
}
|
|
- for key, _ := range img.Config.Volumes {
|
|
|
|
|
|
+ for key := range img.Config.Volumes {
|
|
if key != "/test" {
|
|
if key != "/test" {
|
|
t.Fail()
|
|
t.Fail()
|
|
}
|
|
}
|