Skip to content

Commit

Permalink
modify ID to ChainID to avoid confusing
Browse files Browse the repository at this point in the history
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
  • Loading branch information
lixiaobing1 committed Mar 9, 2017
1 parent 3fe2730 commit 1b0f2d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layer/empty_test.go
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion layer/layer_test.go
Expand Up @@ -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())
Expand Down

0 comments on commit 1b0f2d7

Please sign in to comment.