1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Small fix within TestGetImagesJson

This commit is contained in:
Guillaume J. Charmes 2013-05-10 13:58:21 -07:00
parent 5bec9275c0
commit ae80c37054

View file

@ -12,7 +12,6 @@ import (
"net/http/httptest" "net/http/httptest"
"os" "os"
"path" "path"
"strings"
"testing" "testing"
"time" "time"
) )
@ -169,8 +168,8 @@ func TestGetImagesJson(t *testing.T) {
t.Errorf("Excepted no image Repository, %s found", images2[0].Repository) t.Errorf("Excepted no image Repository, %s found", images2[0].Repository)
} }
if images2[0].Id != GetTestImage(runtime).Id { if images2[0].Id != GetTestImage(runtime).ShortId() {
t.Errorf("Retrieved image Id differs, expected %s, received %d", GetTestImage(runtime).Id, images2[0].Id) t.Errorf("Retrieved image Id differs, expected %s, received %s", GetTestImage(runtime).ShortId(), images2[0].Id)
} }
// filter=a // filter=a