In error, the first letter is low-case letter
| ... | ... |
@@ -832,7 +832,7 @@ func fixManifestLayers(m *schema1.Manifest) error {
|
| 832 | 832 |
|
| 833 | 833 |
if imgs[len(imgs)-1].Parent != "" && runtime.GOOS != "windows" {
|
| 834 | 834 |
// Windows base layer can point to a base layer parent that is not in manifest. |
| 835 |
- return errors.New("Invalid parent ID in the base layer of the image.")
|
|
| 835 |
+ return errors.New("invalid parent ID in the base layer of the image")
|
|
| 836 | 836 |
} |
| 837 | 837 |
|
| 838 | 838 |
// check general duplicates to error instead of a deadlock |
| ... | ... |
@@ -80,7 +80,7 @@ func TestFixManifestLayersBaseLayerParent(t *testing.T) {
|
| 80 | 80 |
}, |
| 81 | 81 |
} |
| 82 | 82 |
|
| 83 |
- if err := fixManifestLayers(&duplicateLayerManifest); err == nil || !strings.Contains(err.Error(), "Invalid parent ID in the base layer of the image.") {
|
|
| 83 |
+ if err := fixManifestLayers(&duplicateLayerManifest); err == nil || !strings.Contains(err.Error(), "invalid parent ID in the base layer of the image") {
|
|
| 84 | 84 |
t.Fatalf("expected an invalid parent ID error from fixManifestLayers")
|
| 85 | 85 |
} |
| 86 | 86 |
} |