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:
parent
3fe2730ab3
commit
1b0f2d71a1
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue