Skip to content

Commit

Permalink
Also test that base image mediaType is not changed
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh committed Jul 21, 2022
1 parent 57791f9 commit ea7d482
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/build/gobuild_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,14 @@ func TestGoBuildConsistentMediaTypes(t *testing.T) {
t.Errorf("layer %d: got mediaType %q, want %q", i, gotMT, c.layerMediaType)
}
}

gotMT, err := img.MediaType()
if err != nil {
t.Fatal(err)
}
if gotMT != c.mediaType {
t.Errorf("got image mediaType %q, want %q", gotMT, c.layerMediaType)
}
})
}
}

0 comments on commit ea7d482

Please sign in to comment.