daemon: update: check len inside public function

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-03-15 17:12:20 +01:00
parent e1089de144
commit d5160a0211

View file

@ -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")
} }