1
0
mirror of https://github.com/golang/go synced 2024-11-12 00:30:22 -07:00

image: add missing error check in test

This commit is contained in:
Leon Klingele 2019-01-30 18:10:17 +01:00
parent 56c9f8e8cf
commit b384f81799
No known key found for this signature in database
GPG Key ID: 0C8AF48831EEC211

View File

@ -123,6 +123,10 @@ loop:
continue
}
c, _, err := decodeConfig(it.filename)
if err != nil {
t.Errorf("%s: %v", it.filename, err)
continue loop
}
if m.ColorModel() != c.ColorModel {
t.Errorf("%s: color models differ", it.filename)
continue loop