forked from TrueCloudLab/distribution
daemon: update: check len inside public function
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
e1089de144
commit
d5160a0211
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ func TestGetRemoteImageJSON(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
assertEqual(t, size, int64(154), "Expected size 154")
|
assertEqual(t, size, int64(154), "Expected size 154")
|
||||||
if len(json) <= 0 {
|
if len(json) == 0 {
|
||||||
t.Fatal("Expected non-empty json")
|
t.Fatal("Expected non-empty json")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue