testutil: avoid overriding cleanup to nil on error

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
docker-18.09
Tonis Tiigi 2018-10-05 17:19:40 -07:00
parent 48ec136f1b
commit 8360d73946
1 changed files with 1 additions and 1 deletions

View File

@ -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