diff --git a/client_test.go b/client_test.go index f100f9c19..97776baaa 100644 --- a/client_test.go +++ b/client_test.go @@ -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