delete unnecessary checks and fix a test

Signed-off-by: Yu Yi <yiyu@google.com>
This commit is contained in:
Yu Yi
2019-03-25 16:01:23 -04:00
committed by Derek McGowan
parent 9e183f5e52
commit aae2d0d754
3 changed files with 5 additions and 9 deletions

View File

@@ -287,9 +287,6 @@ func TestImagePullSomePlatforms(t *testing.T) {
count := 0
for _, manifest := range manifests {
children, err := images.Children(ctx, cs, manifest)
if err != nil {
t.Fatal(err)
}
found := false
for _, matcher := range m {
@@ -315,6 +312,8 @@ func TestImagePullSomePlatforms(t *testing.T) {
}
ra.Close()
}
} else if err == nil {
t.Fatal("manifest should not have pulled children content")
}
}