Merge pull request #3438 from darfux/test_check_manifest_platform_nil
test: Check manifest.Platform before dereferencing
This commit is contained in:
commit
e14cc99e23
@ -293,6 +293,9 @@ func TestImagePullSomePlatforms(t *testing.T) {
|
|||||||
|
|
||||||
found := false
|
found := false
|
||||||
for _, matcher := range m {
|
for _, matcher := range m {
|
||||||
|
if manifest.Platform == nil {
|
||||||
|
t.Fatal("manifest should have proper platform")
|
||||||
|
}
|
||||||
if matcher.Match(*manifest.Platform) {
|
if matcher.Match(*manifest.Platform) {
|
||||||
count++
|
count++
|
||||||
found = true
|
found = true
|
||||||
|
Loading…
Reference in New Issue
Block a user