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
commit e14cc99e23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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