Merge pull request #3438 from darfux/test_check_manifest_platform_nil

test: Check manifest.Platform before dereferencing
This commit is contained in:
Phil Estes
2019-07-22 09:53:29 -04:00
committed by GitHub

View File

@@ -293,6 +293,9 @@ func TestImagePullSomePlatforms(t *testing.T) {
found := false
for _, matcher := range m {
if manifest.Platform == nil {
t.Fatal("manifest should have proper platform")
}
if matcher.Match(*manifest.Platform) {
count++
found = true