1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #31681 from lixiaobing10051267/masterLayer

modify ID to ChainID to avoid confusing
This commit is contained in:
Brian Goff 2017-03-09 08:45:35 -05:00 committed by GitHub
commit 89b4c1d353
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ import (
func TestEmptyLayer(t *testing.T) {
if EmptyLayer.ChainID() != ChainID(DigestSHA256EmptyTar) {
t.Fatal("wrong ID for empty layer")
t.Fatal("wrong ChainID for empty layer")
}
if EmptyLayer.DiffID() != DigestSHA256EmptyTar {

View file

@ -231,7 +231,7 @@ func cacheID(l Layer) string {
func assertLayerEqual(t *testing.T, l1, l2 Layer) {
if l1.ChainID() != l2.ChainID() {
t.Fatalf("Mismatched ID: %s vs %s", l1.ChainID(), l2.ChainID())
t.Fatalf("Mismatched ChainID: %s vs %s", l1.ChainID(), l2.ChainID())
}
if l1.DiffID() != l2.DiffID() {
t.Fatalf("Mismatched DiffID: %s vs %s", l1.DiffID(), l2.DiffID())