testutil: avoid overriding cleanup to nil on error
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>docker-18.09
parent
48ec136f1b
commit
8360d73946
|
@ -217,7 +217,7 @@ mirrors=["%s"]
|
||||||
return tmpdir, nil
|
return tmpdir, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func runMirror(t *testing.T, mirroredImages map[string]string) (host string, cleanup func() error, err error) {
|
func runMirror(t *testing.T, mirroredImages map[string]string) (host string, _ func() error, err error) {
|
||||||
mirrorDir := os.Getenv("BUILDKIT_REGISTRY_MIRROR_DIR")
|
mirrorDir := os.Getenv("BUILDKIT_REGISTRY_MIRROR_DIR")
|
||||||
|
|
||||||
var f *os.File
|
var f *os.File
|
||||||
|
|
Loading…
Reference in New Issue