From 1b0f2d71a1aa9e529357e2ffe342af2a12d7c145 Mon Sep 17 00:00:00 2001
From: lixiaobing10051267
Date: Thu, 9 Mar 2017 16:59:04 +0800
Subject: [PATCH] modify ID to ChainID to avoid confusing
Signed-off-by: lixiaobing10051267
---
layer/empty_test.go | 2 +-
layer/layer_test.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/layer/empty_test.go b/layer/empty_test.go
index 0d8c80c01a..5555dbd8aa 100644
--- a/layer/empty_test.go
+++ b/layer/empty_test.go
@@ -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 {
diff --git a/layer/layer_test.go b/layer/layer_test.go
index 087a0aa78f..5c4da4f9a9 100644
--- a/layer/layer_test.go
+++ b/layer/layer_test.go
@@ -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())