mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
checkt t.Fatalf information for reference path
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
This commit is contained in:
parent
ccd5e18990
commit
4b1ff89fae
2 changed files with 2 additions and 2 deletions
|
@ -229,7 +229,7 @@ func TestParseRepositoryInfo(t *testing.T) {
|
||||||
t.Fatalf("Invalid normalized reference for %q. Expected %q, got %q", r, expected, actual)
|
t.Fatalf("Invalid normalized reference for %q. Expected %q, got %q", r, expected, actual)
|
||||||
}
|
}
|
||||||
if expected, actual := tcase.FullName, r.FullName(); expected != actual {
|
if expected, actual := tcase.FullName, r.FullName(); expected != actual {
|
||||||
t.Fatalf("Invalid normalized reference for %q. Expected %q, got %q", r, expected, actual)
|
t.Fatalf("Invalid fullName for %q. Expected %q, got %q", r, expected, actual)
|
||||||
}
|
}
|
||||||
if expected, actual := tcase.Hostname, r.Hostname(); expected != actual {
|
if expected, actual := tcase.Hostname, r.Hostname(); expected != actual {
|
||||||
t.Fatalf("Invalid hostname for %q. Expected %q, got %q", r, expected, actual)
|
t.Fatalf("Invalid hostname for %q. Expected %q, got %q", r, expected, actual)
|
||||||
|
|
|
@ -350,7 +350,7 @@ func TestInvalidTags(t *testing.T) {
|
||||||
}
|
}
|
||||||
err = store.AddTag(ref, id, true)
|
err = store.AddTag(ref, id, true)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Fatalf("expected setting digest %q to fail", ref)
|
t.Fatalf("expected setting tag %q to fail", ref)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue