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

modify ID to ChainID to avoid confusing

Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
This commit is contained in:
lixiaobing10051267 2017-03-09 16:59:04 +08:00
parent 3fe2730ab3
commit 1b0f2d71a1
2 changed files with 2 additions and 2 deletions

View file

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

View file

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